title: How to add a class that autoloads in Laravel?
body: <p>I am using Laravel 5.8 and I created a custom class named StatusLib.php in the app/library folder.</p>
  
  <p><strong>StatusLib.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>namespace App\library;
  
  class StatusLib
  {
      CONST SUCCESS = '100';
      CONST SUCCESSWITHMESSAGE = '101';
  }
  </code></pre>
  
  <p>I can call this status .</p>
  
  <pre><code>StatusLib::SUCCESS
  </code></pre>
  
  <p>When I add this following use code in the controller.</p>
  
  <pre><code>use app\library\StatusLib;
  </code></pre>
  
  <p>How can I add this StatusLib class in autoload and access from anywhere in the project?</p>