title: Authentication user provider [passport] is not defined with laravel passport
body: <p>I have an api in laravel and im using passport to authenticate. </p>
  
  <p>On my config/auth.php file i have changed this so the api guard using passport and refers to my user provider</p>
  
  <pre><code>'guards' =&gt; [
     'web' =&gt; [
         'driver' =&gt; 'session',
         'provider' =&gt; 'users',
     ],
  
     'api' =&gt; [
         'driver' =&gt; 'passport',
         'provider' =&gt; 'users',
     ],
  ],
  
  'providers' =&gt; [
     'users' =&gt; [
         'driver' =&gt; 'passport',
         'model' =&gt; App\Users::class,
     ],
  </code></pre>
  
  <p>Here is my App/user.php</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Notifications\Notifiable;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  use Laravel\Passport\HasApiTokens;
  
  class User extends Authenticatable
  {
      use HasApiTokens;
      use Notifiable;
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'name', 'email', 'password',
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
      ];
  
      public static function lookup($login)
      {
          return Self::where('email', $login)-&gt;first();
      }
  }
  </code></pre>
  
  <p>Now when I want to log someone in, I run this code:</p>
  
  <pre><code>$newUser = new User([
             'name' =&gt; $login,
             'email' =&gt; $login,
             'password' =&gt; $password
         ]);
  
         $authUser = User::lookup($login);
  
         $tokenResult = $authUser-&gt;createToken('Personal Access Token');
         $token = $tokenResult-&gt;token;
  
         if ($remember)
         {
            $token-&gt;expires_at = Carbon::now()-&gt;addWeeks(1);
            $token-&gt;save();
         }
  
         return response()-&gt;json([
            'access_token' =&gt; $tokenResult-&gt;accessToken,
            'token_type' =&gt; 'Bearer',
            'expires_at' =&gt; Carbon::parse($tokenResult-&gt;token-&gt;expires_at)-&gt;toDateTimeString()
          ]);
  </code></pre>
  
  <p>This sends me back an access token just fine. What im trying to do is check if the user is logged in when doing other functions on the website. I am doing this like below in the routes file:</p>
  
  <pre><code>Route::get('me', 'Account@me')-&gt;middleware('auth:api');
  </code></pre>
  
  <p>So i want to get the infomation of whoever is logged in but it crashes at the middleware by giving me an error of 'Authentication user provider [passport] is not defined'</p>
  
  <p>Any help is appriciated</p>