class Middleware (View source)
| void | __construct(Closure|string|array $middleware, array|null $only = null, array|null $except = null)
Create a new controller middleware definition. | |
| $this | only(array|string $only)
Specify the only controller methods the middleware should apply to. | |
| $this | except(array|string $except)
Specify the controller methods the middleware should not apply to. |
Create a new controller middleware definition.
Specify the only controller methods the middleware should apply to.
Specify the controller methods the middleware should not apply to.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Routing/Controllers/Middleware.html