Middleware
class Middleware
Methods
__construct(Closure|string|array $middleware, array|null $only = null, array|null $except = null)
Create a new controller middleware definition.
only(array|string $only)
Specify the only controller methods the middleware should apply to.
except(array|string $except)
Specify the controller methods the middleware should not apply to.
Details
at line 18
__construct(Closure|string|array $middleware, array|null $only = null, array|null $except = null)
Create a new controller middleware definition.
at line 30
Middleware
only(array|string $only)
Specify the only controller methods the middleware should apply to.
at line 42
Middleware
except(array|string $except)
Specify the controller methods the middleware should not apply to.