Middleware
class Middleware (View source)
Methods
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.
Details
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.