W3cubDocs

/Laravel 8

MiddlewareNameResolver

class MiddlewareNameResolver (View source)

Methods

static Closure|string|array resolve(Closure|string $name, array $map, array $middlewareGroups)

Resolve the middleware name to a class name(s) preserving passed parameters.

static array parseMiddlewareGroup(string $name, array $map, array $middlewareGroups)

Parse the middleware group and format it for usage.

Details

static Closure|string|array resolve(Closure|string $name, array $map, array $middlewareGroups)

Resolve the middleware name to a class name(s) preserving passed parameters.

Parameters

Closure|string $name
array $map
array $middlewareGroups

Return Value

Closure|string|array

static protected array parseMiddlewareGroup(string $name, array $map, array $middlewareGroups)

Parse the middleware group and format it for usage.

Parameters

string $name
array $map
array $middlewareGroups

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/MiddlewareNameResolver.html