title: Laravel API passport - Unable to login
body: <p>After i register an user using the passport and see the user in database.
  i tried to login and i get the message "Unauthorised".
  this is my login method:</p>
  
  <pre><code>public function login(){
      if(Auth::attempt(['email' =&gt; request('email'), 'password' =&gt; request('password')])){
          $user = Auth::user();
          $success['token'] =  $user-&gt;createToken('MyApp')-&gt;accessToken;
          return response()-&gt;json(['success' =&gt; $success], $this-&gt;successStatus);
      }
      else{
          return response()-&gt;json(['error'=&gt;'Unauthorised'], 401);
      }
  }
  </code></pre>
  
  <p>i also tried to receive the Request in the login method as a parameter and handle it but i still do not login.</p>
  
  <p><a href="https://i.stack.imgur.com/SG0uR.png" rel="nofollow noreferrer">I'm using Postman to perform the request</a></p>
  
  <p>[update]</p>
  
  <p>i checked that my request() is receiving null</p>