/** * @param \Illuminate\Http\Request $request * @return array */ protected function gatherRouteMiddlewares($request) { if ($request->route()) { return $this->router->gatherRouteMiddlewares($request->route()); } return []; }
/** * Gather the route middlewares. * * @param \Illuminate\Routing\Route $route * * @return array */ public function gatherRouteMiddlewares($route) { if (method_exists($this->router, 'gatherRouteMiddleware')) { return $this->router->gatherRouteMiddleware($route); } return $this->router->gatherRouteMiddlewares($route); }
/** * Gather the middleware for the given route. * * @param \Illuminate\Routing\Route $route * @return array * @static */ public static function gatherRouteMiddlewares($route) { return \Illuminate\Routing\Router::gatherRouteMiddlewares($route); }
/** * Gather the route middlewares. * * @param \Illuminate\Routing\Route $route * * @return array */ public function gatherRouteMiddlewares($route) { return $this->router->gatherRouteMiddlewares($route); }