Documentation

ControllerMiddlewareOptions
in package

Table of Contents

$options  : array<string|int, mixed>
The middleware options.
__construct()  : void
Create a new middleware option instance.
except()  : $this
Set the controller methods the middleware should exclude.
only()  : $this
Set the controller methods the middleware should apply to.

Properties

Methods

__construct()

Create a new middleware option instance.

public __construct(array<string|int, mixed> &$options) : void
Parameters
$options : array<string|int, mixed>
Return values
void

except()

Set the controller methods the middleware should exclude.

public except(array<string|int, mixed>|string|dynamic $methods) : $this
Parameters
$methods : array<string|int, mixed>|string|dynamic
Return values
$this

only()

Set the controller methods the middleware should apply to.

public only(array<string|int, mixed>|string|dynamic $methods) : $this
Parameters
$methods : array<string|int, mixed>|string|dynamic
Return values
$this

Search results