title: Laravel - Loading classes
body: <p>There are questions on here and around Google asking about the same thing, but being a noob, I'm still not getting this. I'm using Laravel 4.</p>
  
  <p>Trying to have a file for random classes. Doesn't load.</p>
  
  <p>The class is in:</p>
  
  <pre><code>app/classes/Helpers.php
  </code></pre>
  
  <p><em>Helpers.php:</em></p>
  
  <p>
  
  <pre><code>class Helpers {
  
      public function randomLowerCase($amount)
      {
          strtolower($str_random($amount))
      }
  
  };
  </code></pre>
  
  <p>I've placed my classes in composer.json.</p>
  
  <pre><code>"classmap": [
      "app/commands",
      "app/controllers",
      "app/models",
      "app/classes",
      "app/database/migrations",
      "app/database/seeds",
      "app/tests/TestCase.php"
  ]
  </code></pre>
  
  <p>autoload_classmap.php:</p>
  
  <pre><code>'Helpers' =&gt; $baseDir . '/app/classes/Helpers.php',
  </code></pre>
  
  <p>And also ran </p>
  
  <pre><code>composer dump-autoload
  </code></pre>
  
  <p>I'm running the function in a UserController.php file in controllers, but I keep getting <code>Call to undefined function randomLowerCase()</code></p>