Documentation

Controller
in package

Table of Contents

$middleware  : array<string|int, mixed>
The middleware registered on the controller.
__call()  : mixed
Handle calls to missing methods on the controller.
callAction()  : Response
Execute an action on the controller.
getMiddleware()  : array<string|int, mixed>
Get the middleware assigned to the controller.
middleware()  : ControllerMiddlewareOptions
Register middleware on the controller.

Properties

$middleware

The middleware registered on the controller.

protected array<string|int, mixed> $middleware = []

Methods

__call()

Handle calls to missing methods on the controller.

public __call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed>
Tags
throws
BadMethodCallException
Return values
mixed

callAction()

Execute an action on the controller.

public callAction(string $method, array<string|int, mixed> $parameters) : Response
Parameters
$method : string
$parameters : array<string|int, mixed>
Return values
Response

getMiddleware()

Get the middleware assigned to the controller.

public getMiddleware() : array<string|int, mixed>
Return values
array<string|int, mixed>

middleware()

Register middleware on the controller.

public middleware(array<string|int, mixed>|string|Closure $middleware[, array<string|int, mixed> $options = [] ]) : ControllerMiddlewareOptions
Parameters
$middleware : array<string|int, mixed>|string|Closure
$options : array<string|int, mixed> = []
Return values
ControllerMiddlewareOptions

Search results