class ControllerMiddlewareOptions

Properties

protected array $options

The middleware options.

Methods

__construct(array $options)

Create a new middleware option instance.

only(array|string $methods)

Set the controller methods the middleware should apply to.

except(array|string $methods)

Set the controller methods the middleware should exclude.

Details

at line 17
__construct(array $options)

Create a new middleware option instance.

Parameters

array $options

at line 27
ControllerMiddlewareOptions only(array|string $methods)

Set the controller methods the middleware should apply to.

Parameters

array|string $methods

Return Value

ControllerMiddlewareOptions

at line 39
ControllerMiddlewareOptions except(array|string $methods)

Set the controller methods the middleware should exclude.

Parameters

array|string $methods

Return Value

ControllerMiddlewareOptions