title: Custom class in laravel is not being recognized
body: <p>So I've been trying to create a custom class file for all my custom classes and append them in there, I'm using namespaces in order to accomplish using them in my controller however the controller is not recognizing the class</p>
  
  <p>Ok:</p>
  
  <p>Here is my custom class file placed in my project as <code>app/Library/robloxClasses.php</code> </p>
  
  <pre><code>namespace App\Library; 
  
  class RobloxMaths{
      public function sortArrayOfArray(&amp;$array, $subfield)
      {
              $sortarray = array();
              foreach ($array as $key =&gt; $row)
              {
                  $sortarray[$key] = $row[$subfield];
              }
  
              array_multisort($sortarray, SORT_DESC, $array);
      }
  }
  </code></pre>
  
  <p><code>Library</code> is a folder i made to store all my custom class files in there</p>
  
  <p>Here is how my controller <code>ApiController</code> uses the file using it's namespace</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Library\RobloxMaths;
  use Illuminate\Http\Request;
  
  
  class ApiController extends Controller
  {
  
  protected $RobloxClass;
      public function __construct(){
          $this-&gt;$RobloxClass= new RobloxMaths;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>The problem is, it keeps returning:</p>
  
  <pre><code>Class 'App\Library\RobloxMaths' not found
  </code></pre>
  
  <p>And I honestly do not know what's wrong, please help!</p>
  
  <p><strong>NOTE:</strong> I have tried composer update, and it fixes it temporarily but after a day or two or after me installing new dependencies it notifies me that the Class 'App\Library\RobloxMaths' not found thing happened</p>
  
  <p>help please</p>