interface HasControllerMiddlewareInterface (View source)

Interface for HasMiddlewareTrait.

Methods

array
getMiddleware(string $method)

Get middleware.

addMiddleware(string|array $middleware)

Add middleware.

middleware(string|array $middleware)

Fluent alias for addMiddleware().

Details

array getMiddleware(string $method)

Get middleware.

Parameters

string $method

Return Value

array

ControllerMiddleware addMiddleware(string|array $middleware)

Add middleware.

Parameters

string|array $middleware

Return Value

ControllerMiddleware

ControllerMiddleware middleware(string|array $middleware)

Fluent alias for addMiddleware().

Parameters

string|array $middleware

Return Value

ControllerMiddleware