original_string: public function handle(Request $request, Closure $next)
      {
          if (!$this->auth->check()) {
              Flash::error(trans('dashboard::dashboard.flash.access_denied'));
  
              return redirect()->route('auth.login');
          }
  
          return $next($request);
      }
code: public function handle(Request $request, Closure $next)
      {
          if (!$this->auth->check()) {
              Flash::error(trans('dashboard::dashboard.flash.access_denied'));
  
              return redirect()->route('auth.login');
          }
  
          return $next($request);
      }
code_tokens: public function handle ( Request $ request , Closure $ next ) { if ( ! $ this -> auth -> check ( ) ) { Flash :: error ( trans ( 'dashboard::dashboard.flash.access_denied' ) ) ; return redirect ( ) -> route ( 'auth.login' ) ; } return $ next ( $ request ) ; }
docstring: Check if a user is logged in.
  
  @param Request $request
  @param Closure $next
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Check if a user is logged in .