Dingo\Api\Routing\Adapter\Laravel::gatherRouteMiddlewares PHP Method

gatherRouteMiddlewares() public method

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