title: Logout in JWT does not work
body: <p>I am new in Laravel, I installed JWT and logged In , so It worked and generated a token, When I Logout in postman It returns true but again and again it returns true and </p>
  
  <blockquote>
    <p>auth()->user()</p>
  </blockquote>
  
  <p>always returns the user after logout</p>
  
  <p>this is my code:</p>
  
  <pre><code>  public function login(Request $request)
    {
  
      $this-&gt;validateLogin($request);
  
      if (!$jwt_token = JWTAuth::attempt($request-&gt;toArray())) {
        return response()-&gt;json([
          'success' =&gt; false,
          'message' =&gt; 'Invalid national_id or Password',
        ], 401);
      }
  
      return response()-&gt;json(['success' =&gt; true, 'token' =&gt; $jwt_token,], 200);
  
    }
  </code></pre>
  
  <p>and in logout:</p>
  
  <pre><code>  public function logout(Request $request)
    {
      auth()-&gt;logout();
      return response()-&gt;json(['data' =&gt; 'you logged out successfully'],200)
    }
  </code></pre>
  
  <p>In routes:</p>
  
  <pre><code>Route::group(['prefix' =&gt; 'v1', 'namespace' =&gt; 'Api\v1'], function() {
  
    Route::post('login', 'Auth\LoginController@login');
  });
  
      Route::group(['middleware' =&gt; ['auth:api', 'api'], 'prefix' =&gt; 'v1', 'namespace' =&gt; 'Api\v1'], function() {
  
      // Authentication Routes...
        Route::post('logout', 'Auth\LoginController@logout')-&gt;name('logout');
      .
      .
      .
      .
      .
  </code></pre>
  
  <p>I also used  <code>JWTAuth::invalidate($request-&gt;token);</code> again it did not work.</p>