title: Why Class 'Aws\Laravel\AwsServiceProvider' not found in laravel 7.0?
body: <p>I installed package  <strong>composer require league/flysystem-aws-s3-v3</strong>
  After installation,</p>
  <p>Added <code>Aws\Laravel\AwsServiceProvider::class</code> to <code>'providers'</code> array.</p>
  <p>Added <code>'AWS' =&gt; Aws\Laravel\AwsFacade::class,</code> to <code>'aliases'</code> array.</p>
  <p>When I am trying to execute <code>php artisan vendor:publish --provider=&quot;Aws\Laravel\AwsServiceProvider&quot;</code></p>
  <p>its throwing error :</p>
  <pre class="lang-php prettyprint-override"><code>In ProviderRepository.php line 208:
  
    Class 'Aws\Laravel\AwsServiceProvider' not found
  </code></pre>
  <p><strong>I have already done <code>composer update</code>, <code>composer dump-autoload</code></strong></p>
  <p>then error is <code>&quot;In ProviderRepository.php line 208</code>:</p>
  <pre><code>Class 'Aws\Laravel\AwsServiceProvider' not found
  
  Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1&quot;
  </code></pre>