src/Routing/Adapter/Laravel.php
public function gatherRouteMiddlewares($route)
    {
        if (method_exists($this->router, 'gatherRouteMiddleware')) {
            return $this->router->gatherRouteMiddleware($route);
        }

        return $this->router->gatherRouteMiddlewares($route);
    }
public function gatherRouteMiddlewares($route)
    {
        if (method_exists($this->router, 'gatherRouteMiddleware')) {
            return $this->router->gatherRouteMiddleware($route);
        }

        return $this->router->gatherRouteMiddlewares($route);
    }
public function gatherRouteMiddlewares ( $ route ) { if ( method_exists ( $ this -> router , 'gatherRouteMiddleware' ) ) { return $ this -> router -> gatherRouteMiddleware ( $ route ) ; } return $ this -> router -> gatherRouteMiddlewares ( $ route ) ; }
Gather the route middlewares.

@param \Illuminate\Routing\Route $route

@return array
Gather the route middlewares .