title: Laravel: If isActive Middleware return false I can't login with different user until delete cookies
body: <p>I have isActive middleware where I set 1 to acitive and 0 when user is not active.</p>
  
  <pre><code>isActive.php inMiddleware folder look like this:
  
  namespace App\Http\Middleware;
  
  use Closure;
  use Illuminate\Support\Facades\Auth;
  
  class IsActive
  {
      /**
       * Handle an incoming request.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  \Closure  $next
       * @return mixed
       */
      public function handle($request, Closure $next)
      {
          if (Auth::check()) {
            if (Auth::user()-&gt;isActive()) {
              return $next($request);
            }
          }
  
          return redirect('/')-&gt;with('nonActive', 'Account is not active');
      }
  }
  </code></pre>
  
  <p>and I have method in User model:</p>
  
  <pre><code>public function isActive()
  {
      if ($this-&gt;is_active == 1) {
          return true;
      }
  
      return false;
  }
  </code></pre>
  
  <p>In Kernel.php in protected $routeMiddleware I add this:</p>
  
  <pre><code>'is.active' =&gt; \App\Http\Middleware\IsActive::class,
  </code></pre>
  
  <p>and I have group middleware in routes and all this works fine.</p>
  
  <p>But, when isActive Middleware return false I can't login with different user. Always get return false as if that user is inactive too until I delete cookies. After deleting I can login just fine with user that is active.</p>