title: PHP Laravel class not found
body: <p>I am receiving an error when trying to execute $ php artisan passport:install on my terminal, which I will paste below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>In AuthServiceProvider.php line 26:
                                              
    Class 'App\Providers\Passport' not found  </code></pre>
  </div>
  </div>
  </p>
  
  <p>I suspect the issue is in my config/auth.php , so I will link the contents below (comments removed):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  return [
  
      'defaults' =&gt; [
          'guard' =&gt; 'web',
          'passwords' =&gt; 'users',
      ],
  
      'guards' =&gt; [
          'web' =&gt; [
              'driver' =&gt; 'session',
              'provider' =&gt; 'users',
          ],
  
          'api' =&gt; [
              'driver' =&gt; 'passport',
              'provider' =&gt; 'users',
          ],
      ],
  
      'providers' =&gt; [
          'users' =&gt; [
              'driver' =&gt; 'eloquent',
              'model' =&gt; App\User::class,
          ],
  
      ],
  
      'passwords' =&gt; [
          'users' =&gt; [
              'provider' =&gt; 'users',
              'table' =&gt; 'password_resets',
              'expire' =&gt; 60,
          ],
      ],
  
  ];</code></pre>
  </div>
  </div>
  </p>
  
  <p>Below are other files where I have referred to Laravel Passport...</p>
  
  <p>App/user.php :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
      namespace App;
      
      use Laravel\Passport\HasApiTokens;
      use Illuminate\Notifications\Notifiable;
      use Illuminate\Foundation\Auth\User as Authenticatable;
      
      class User extends Authenticatable
      {
          use HasApiTokens, Notifiable;
          
          protected $fillable = ['name', 'email', 'password', 'chatkit_id'];
          
          protected $hidden = ['password', 'remember_token'];
          
          public function setPasswordAttribute($value)
          {
              $this-&gt;attributes['password'] = bcrypt($value);
          }
          }</code></pre>
  </div>
  </div>
  </p>
  
  <p>app/providers/AuthServiceProvider.php :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace App\Providers;
  
  use Illuminate\Support\Facades\Gate;
  use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
  
  class AuthServiceProvider extends ServiceProvider
  {
      /**
       * The policy mappings for the application.
       *
       * @var array
       */
      protected $policies = [
          'App\Model' =&gt; 'App\Policies\ModelPolicy',
      ];
  
      /**
       * Register any authentication / authorization services.
       *
       * @return void
       */
      public function boot()
      {
          Passport::routes();
          $this-&gt;registerPolicies();
  
          //
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>any ideas on how to resolve this problem?</p>