title: lumen framework routing not working
body: <p>I use the Lumen framework for first time, the route <code>/</code> to my HomeController is not working.</p>
  
  <p>This is my route.php:</p>
  
  <pre><code>$app-&gt;get('/', 'HomeController@index');
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>[2015-04-17 07:03:41] lumen.ERROR: exception 'ReflectionException' with message 'Class HomeController does not exist' in /Users/refear99/Web/qingsongchou_api/vendor/illuminate/container/Container.php:776
  
  Stack trace:
  #0 /Users/refear99/Web/qingsongchou_api/vendor/illuminate/container/Container.php(776): ReflectionClass-&gt;__construct('HomeController')
  #1 /Users/refear99/Web/qingsongchou_api/vendor/illuminate/container/Container.php(656): Illuminate\Container\Container-&gt;build('HomeController', Array)
  #2 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(358): Illuminate\Container\Container-&gt;make('HomeController', Array)
  #3 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1184): Laravel\Lumen\Application-&gt;make('HomeController')
  #4 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1157): Laravel\Lumen\Application-&gt;callControllerAction(Array)
  #5 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1142): Laravel\Lumen\Application-&gt;callActionOnArrayBasedRoute(Array)
  #6 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1120): Laravel\Lumen\Application-&gt;handleArrayBasedFoundRoute(Array)
  #7 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1058): Laravel\Lumen\Application-&gt;handleFoundRoute(Array)
  #8 /Users/refear99/Web/qingsongchou_api/vendor/laravel/lumen-framework/src/Application.php(1006): Laravel\Lumen\Application-&gt;dispatch(NULL)
  #9 /Users/refear99/Web/qingsongchou_api/public/index.php(28): Laravel\Lumen\Application-&gt;run()
  #10 {main}  
  </code></pre>
  
  <p>This is my HomeController.php in /app/Http/Controllers/</p>
  
  <pre><code>&lt;?php namespace App\Http\Controllers;
  
  class HomeController extends Controller {
  
  public function index()
  {
      echo 123;
  }
  
  }
  </code></pre>
  
  <p>What could the problem be?</p>