class Illuminate / Routing / MiddlewareNameResolver
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

MiddlewareNameResolver

Methods

public static

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

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

Parameters

  • $name Closure |string
  • $map array
  • $middlewareGroups array
protected static

parseMiddlewareGroup ( $name , $map , $middlewareGroups ) : array

Parse the middleware group and format it for usage.

Parameters

  • $name string
  • $map array
  • $middlewareGroups array