title: How Laravel auto load all provider classes from config\app.php => providers
body: <p>I wonder how does laravel load all the classes which was registered in <strong>config\app.php</strong>. 
  <a href="https://i.stack.imgur.com/cTp8w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cTp8w.png" alt="enter image description here"></a></p>
  
  <p>because I am trying to same thing with another <strong>project</strong>(non laravel framework) where I need to register module class by array. like this</p>
  
  <pre><code>class Module {
  
          public function __construct()
          {
              $this-&gt;register();
          }
  
          public function register()
          {
              return [
                  \Modules\Quiz::class,
                  \Modules\Library::class,
                  \Modules\Payment::class,
              ];
          }
      }
  </code></pre>