Laravel 13.12.0 ships several new features and fixes. Scheduled events now support a withAttributes() method for attaching arbitrary metadata accessible in lifecycle callbacks. A new ShouldBeDiscovered interface lets auto-discovered listeners conditionally opt out of registration at the class level, avoiding unnecessary queue dispatches. Queue workers gain a stopOnLostConnection static property to prevent boot-looping when a database replica goes temporarily offline. SQLite connections now accept file: URI format for specifying options like cache=shared. Other additions include a normalize parameter for Str::studly() and Str::pascal(), a uri() method on HTTP client request objects, assertJsonPathsCanonicalizing() on TestResponse, prohibitable cache:clear and key:generate Artisan commands, and a fix for scheduler callback parameter resolution by type rather than name.

5m read timeFrom laravel-news.com
Post cover image
Table of contents
# Custom Attributes on Scheduled Events# Listener Discovery Opt-Out via ShouldBeDiscovered# Opt Out of Worker Restart on Lost Connection# SQLite URI-Based Connections# Str::studly() and Str::pascal() Normalization# Client\Request::uri() for HTTP Client Middleware# assertJsonPathsCanonicalizing() on TestResponse# Prohibitable cache:clear and key:generate Commands# Scheduler Callback Parameter Resolution Fixed# Miscellaneous Fixes and Improvements
29.8K Impressions1 Comment