check()) { return redirect()->route('login')->with('error','You are not authorized!'); } return $next($request); } }