Never Miss a Laravel Release 🚀
The Laravel team released version 12.39.0 this week with a Blade @hasStack directive, a middleware filter for the route:list command, along with the latest type updates, fixes, and more.
New @hasStack Blade Directive
Andrew Brown contributed a @hasStack Blade directive that can be used to wrap @stack directives for conditional output:
@push('list') <li>Item 1</li>@endpush @hasstack('list') <ul> @stack('list') </ul>@endif {{-- output --}}<ul> <li>Item 1</li></ul>
See Pull Request #57788 for details.
Route List Middleware Filter
Jason McCreary contributed a --middleware option to filter route:list output by middleware. It accepts a single middleware class or middleware group name. It can also match a partial string:
php artisan route:list --middleware=apiphp artisan route:list --middleware=ThrottleRequests

See Pull Request #57797 for implementation details.
Release notes
You can see the complete list of new features and updates below and the diff between 12.38.0 and 12.39.0 on GitHub. The following release notes are directly from the changelog:
v12.39.0
- [12.x]
ApplicationBuilder@withExceptions()improvements by @cosmastech in https://github.com/laravel/framework/pull/57778 - Carry
--forcetomake:testfor generators with--testby @CasEbb in https://github.com/laravel/framework/pull/57777 - [12.x] Fix
Request::getAcceptableContentTypes()changes in Symfony 7.4 by @crynobone in https://github.com/laravel/framework/pull/57783 - [12.x] Accept string bindings in give attribute by @pjotrvdh in https://github.com/laravel/framework/pull/57747
- [12.x] Fix
WithCachedConfigto work with parallel test runs by @cosmastech in https://github.com/laravel/framework/pull/57785 - [12.x] Tailwind pagination styling/accessibility updates by @browner12 in https://github.com/laravel/framework/pull/57793
- [12.x]
RequestException: attempt to summarize message before reporting by @cosmastech in https://github.com/laravel/framework/pull/57767 - [12.x] create new
@hasStackBlade directive by @browner12 in https://github.com/laravel/framework/pull/57788 - Add
--middlewarefilter toroute:listby @jasonmccreary in https://github.com/laravel/framework/pull/57797 - [12.x] Fix stale in-memory SQLite connections after re-migration in RefreshDatabase by @PouyaPour in https://github.com/laravel/framework/pull/57716
- [12.x] Type-hint the
ResourceCollection::$collectionproperty as nullable by @lorenzolosa in https://github.com/laravel/framework/pull/57807 - [12.x] Fix
Factory@insert()to allow for array casts by @cosmastech in https://github.com/laravel/framework/pull/57794 - [12.x] Improve typehints for
Http::pool()by @cosmastech in https://github.com/laravel/framework/pull/57811