excludedRoutes($request)) { return $next($request); } return parent::handle($request, $next); } /** * This will return a bool value based on route checking. * @param Request $request * @return boolean */ protected function excludedRoutes($request) { foreach($this->routes as $route) if ($request->is($route)) return true; return false; } }