Laravel 13 Arrives With PHP Attributes, Cache Touch, and Boot-Time Config Checks
Laravel 13 was released on March 17, 2026, requiring PHP 8.3 and introducing zero application-level breaking changes from Laravel 12. The framework now supports PHP 8-style attributes across 15+ locations, allowing developers to define table settings, fillable fields, middleware, and authorization directly on model and controller classes. A new Cache::touch() method lets developers extend a cache item's TTL with a single command, eliminating the previous need for a wasteful get-then-put round-trip. Laravel 13 also shifts typed config validation to boot time, throwing a ConfigTypeMismatchException immediately when environment variables don't match expected types, rather than failing silently at runtime. Developers using custom cache store drivers are advised to audit them before upgrading, as the absence of a touch() method will cause a fatal runtime error.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in