ControllerMiddlewareOptions (Routing)

ControllerMiddlewareOptions

class ControllerMiddlewareOptions (View source)

Methods

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.

Details

void __construct(array $options)

Create a new middleware option instance.

Parameters

array $options

Return Value

void

$this only(array|string|dynamic $methods)

Set the controller methods the middleware should apply to.

Parameters

array|string|dynamic $methods

Return Value

$this

$this except(array|string|dynamic $methods)

Set the controller methods the middleware should exclude.

Parameters

array|string|dynamic $methods

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Routing/ControllerMiddlewareOptions.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部