public function resolveMiddleware($name)
    {
        if (isset($this->middlewareGroups[$name])) {
            return $this->parseMiddlewareGroup($name);
        }

        return $this->parseMiddleware($name);
    }
public function resolveMiddleware($name)
    {
        if (isset($this->middlewareGroups[$name])) {
            return $this->parseMiddlewareGroup($name);
        }

        return $this->parseMiddleware($name);
    }
public function resolveMiddleware ( $ name ) { if ( isset ( $ this -> middlewareGroups [ $ name ] ) ) { return $ this -> parseMiddlewareGroup ( $ name ) ; } return $ this -> parseMiddleware ( $ name ) ; }
Resolve the middleware name to class name preserving passed parameters.

@param  string $name
@return array
Resolve the middleware name to class name preserving passed parameters .