title: Laravel Passport Install Class Not Found
body: <p>I'm trying to configure my Laravel app to use Passport and have gotten stuck at loading the class in my AppServiceProvider.php. Here is what I've done...</p>
  
  <pre><code>&lt;?php // AuthServiceProvider.php
  
  namespace S1\Providers;
  
  use Laravel\Passport\PassportServiceProvider;
  use Illuminate\Support\Facades\Gate;
  use Illuminate\Foundation\Support\Providers\AuthServiceProvider as 
  ServiceProvider;
  
  class AuthServiceProvider extends ServiceProvider
  {
  ...
      public function boot()
      {
          $this-&gt;registerPolicies();
          Passport::routes();
          Passport::tokensCan([
              'client' =&gt; 'this is a api client test'
          ]);
      }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>&lt;?php .  // auth.php
   ...
  return [
  
      'guards' =&gt; [
          'web' =&gt; [
               'driver' =&gt; 'passport',
              'provider' =&gt; 'users',
          ],
  ], ...
  </code></pre>
  
  <p>.</p>
  
  <pre><code>&lt;?php // app.php
  
  'providers' =&gt; [
  ...
  Laravel\Passport\PassportServiceProvider::class,
  ....
  </code></pre>
  
  <p>.</p>
  
  <pre><code>&lt;?php  // AppServiceProvider.php
  
  namespace S1\Providers;
  
  use Illuminate\Support\ServiceProvider;
  use S1\Providers\AppServiceProvider;
  use Laravel\Passport\PassportServiceProvider;
  
  class AppServiceProvider extends ServiceProvider
  {
  
      public function register()
      {
          // Enable Laravel Migrations Generator for development only
          if ($this-&gt;app-&gt;environment() !== 'production') {
              $this-&gt;app-&gt;register(\Way\Generators\GeneratorsServiceProvider::class);
              $this-&gt;app-&gt;register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
          }
      }
  }
  </code></pre>
  
  <p>The result of this is getting the following error:</p>
  
  <pre><code>  [Symfony\Component\Debug\Exception\FatalThrowableError]  
    Class 'S1\Providers\Passport' not found   
  </code></pre>
  
  <p>I did have this working but had to rebuid and now I can't get past this error. Something is going on with my namespaces but I can't figure out what.</p>