ControllerMiddleware
class ControllerMiddleware (View source)
Redirect users who do not have a capability to a specific URL.
Methods
__construct(string|string[] $middleware)
Constructor.
string[]
get()
Get middleware.
only(string|string[] $methods)
Set methods the middleware should apply to.
except(string|string[] $methods)
Set methods the middleware should not apply to.
boolean
appliesTo(string $method)
Get whether the middleware applies to the specified method.
Details
at line 45
__construct(string|string[] $middleware)
Constructor.
at line 55
string[]
get()
Get middleware.
at line 66
ControllerMiddleware
only(string|string[] $methods)
Set methods the middleware should apply to.
at line 79
ControllerMiddleware
except(string|string[] $methods)
Set methods the middleware should not apply to.
at line 91
boolean
appliesTo(string $method)
Get whether the middleware applies to the specified method.