laravel-daily 2 days ago
Povilas Korop #Web Development

New in Laravel 11.38 | Enable/Disable Middleware Per Method

Now you can enable or disable a Middleware in specific methods of your Resource Controller, directly in the Routes file, with methods middlewareFor() or withoutMiddlewareFor().

Povilas Korop
explaining laravel