class
Illuminate
/
Routing
/
ControllerMiddlewareOptions
ControllerMiddlewareOptions
Properties
protected
$options array
The middleware options.
Default: null
Methods
public
__construct ( array $options ) : void
Create a new middleware option instance.
Parameters
- $options array
public
only ( $methods ) : $this
Set the controller methods the middleware should apply to.
Parameters
- $methods array|string|mixed
public
except ( $methods ) : $this
Set the controller methods the middleware should exclude.
Parameters
- $methods array|string|mixed