Example #1
0
 /**
  * @param \Illuminate\Http\Request $request
  * @return array
  */
 protected function gatherRouteMiddlewares($request)
 {
     if ($request->route()) {
         return $this->router->gatherRouteMiddlewares($request->route());
     }
     return [];
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * Gather the route middlewares.
  *
  * @param \Illuminate\Routing\Route $route
  *
  * @return array
  */
 public function gatherRouteMiddlewares($route)
 {
     return $this->router->gatherRouteMiddlewares($route);
 }