title: Working on Laravel packages not found Class 'Usman\HeloProvider' not found
body: <p>I am making a Laravel package. The error I got is <strong>class not found</strong>. Here is my Provider:</p>
  <pre><code>&lt;?php
  
  namespace Usman;
  
  use Illuminate\Support\ServiceProvider;
  
  class HeloProvider extends ServiceProvider
  {
      /**
       * Register services.
       *
       * @return void
       */
      public function register()
      {
          //
      }
  
      /**
       * Bootstrap services.
       *
       * @return void
       */
      public function boot()
      {
          //
      }
  }
  </code></pre>
  <p>In config/app.php I define it like this</p>
  <pre><code> Usman\HeloProvider::class,
  </code></pre>
  <p>In composer.json</p>
  <pre><code>   &quot;autoload&quot;: {
          &quot;psr-4&quot;: {
          &quot;Usman\\&quot;: &quot;package/usman/src/&quot;
                  }
  </code></pre>