Laravel News
Read post

Image Dominant Color and HEIC Support in Laravel 13.24

Laravel 13.24 ships several notable additions: the image API gains dominant color detection via dominantColor() and HEIC/AVIF input and output support, the Eloquent query builder gets a modelKeys() method to pluck primary keys without hardcoding column names, and a new array_keys validation rule provides clearer error messages for unexpected array keys with an :unexpected placeholder. A critical performance fix resolves quadratic rule expansion in wildcard validation (foo.*.bar) that could stall requests for over a minute on large arrays — at 8,000 items, validation time drops from 85s to under 1s. Additional fixes address Arr::forget() removing wrong elements, CompiledRouteCollection rebuilding Route objects on every lookup (404 response time drops from 71ms to 2.5ms), Eloquent accessor/appends disagreement, PostgreSQL JSON path SQL injection risk, and circular alias memory exhaustion.

    #php#laravel#image-processing
Yesterday•8m read time•From laravel-news.com
Post cover image
Table of contents
# Dominant Color Detection in the Image API# AVIF and HEIC Input, HEIC Output# modelKeys() on the Eloquent Query Builder# array_keys Validation Rule# Wildcard Validation No Longer Stalls on Large Arrays# Arr::forget() Removing the Wrong Element# Other Fixes and Improvements
3 Impressions
Laravel News's image
Laravel News

2.2K Followers

•

14.8K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard