class ControllerMiddlewareOptions (View source)
void | __construct( array $options) Create a new middleware option instance. | |
$this | only( array|string|dynamic $methods) Set the controller methods the middleware should apply to. | |
$this | except( array|string|dynamic $methods) Set the controller methods the middleware should exclude. |
Create a new middleware option instance.
Set the controller methods the middleware should apply to.
Set the controller methods the middleware should exclude.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Routing/ControllerMiddlewareOptions.html