title: Laravel routing failing for controller
body: <p>Its Laravel 5.
  When the route.php contains this:</p>
  
  <pre><code>Route::get('/foo', function () {
      return 'Hello World';
  });
  </code></pre>
  
  <p>then the page shows with the text "Hello World".</p>
  
  <p>However, as soon as I add this new line in route.php:</p>
  
  <pre><code>Route::get('/foo2', 'IndexController');
  </code></pre>
  
  <p>then the page show this error:</p>
  
  <pre><code>UnexpectedValueException in Route.php line 567: Invalid route action: [App\Http\Controllers\IndexController]
  </code></pre>
  
  <p>I previously created a controller with artisan which now looks like this:</p>
  
  <pre><code>class IndexController extends Controller
  {
      public function index()
      {
          echo 'test';
      }
  }
  </code></pre>
  
  <p>what am I doing wrong?</p>