/** * Gather the middlewares for the route. * * @param \Dingo\Api\Http\Request $request * * @return array */ protected function gatherRouteMiddlewares($request) { if ($route = $request->route()) { return $this->router->gatherRouteMiddlewares($route); } return []; }