HasMiddlewareDefinitionsTrait
trait HasMiddlewareDefinitionsTrait (View source)
Provide middleware definitions.
Methods
Register middleware.
Register middleware groups.
Filter array of middleware into a unique set.
Expand array of middleware into an array of fully qualified class names.
Expand a middleware group into an array of fully qualified class names.
Expand middleware into an array of fully qualified class names and any companion arguments.
Expand a single middleware a fully qualified class name.
Details
at line 50
void
setMiddleware(array $middleware)
Register middleware.
at line 61
void
setMiddlewareGroups(array $middleware_groups)
Register middleware groups.
at line 71
string[]
uniqueMiddleware(array[] $middleware)
Filter array of middleware into a unique set.
at line 81
array[]
expandMiddleware(string[] $middleware)
Expand array of middleware into an array of fully qualified class names.
at line 100
array[]
expandMiddlewareGroup(string $group)
Expand a middleware group into an array of fully qualified class names.
at line 120
array[]
expandMiddlewareMolecule(string $middleware)
Expand middleware into an array of fully qualified class names and any companion arguments.
at line 140
string
expandMiddlewareAtom(string $middleware)
Expand a single middleware a fully qualified class name.