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

at line line 20
void __construct( array $options)

Create a new middleware option instance.

Parameters

array $options

Return Value

void

at line line 31
$this only( array|string|dynamic $methods)

Set the controller methods the middleware should apply to.

Parameters

array|string|dynamic $methods

Return Value

$this

at line line 44
$this except( array|string|dynamic $methods)

Set the controller methods the middleware should exclude.

Parameters

array|string|dynamic $methods

Return Value

$this