title: Laravel routes file cannot find Controllers
body: <p>I have a very simple routes.php file:</p>
  
  <pre><code>&lt;?php
  
  Route::get('/', 'TracksController@index');
  </code></pre>
  
  <p>And a simple TracksController.php file located at App\Http\Controllers:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Track as Track;
  
  class TracksController extends Controller
  {
      function index(){
  
          $tracks = Track::latest-&gt;get();
          return view('tracks')-&gt;with(compact('tracks'));
  
      }
  
  }
  </code></pre>
  
  <p>But whenever I try to access that route I get this error:</p>
  
  <pre><code>ReflectionException in Route.php line 280:
  Class App\Http\Controllers\TracksController does not exist
  </code></pre>
  
  <p>I have no idea what else I can do. I have:</p>
  
  <ul>
  <li>Run composer dumpautoload</li>
  <li>Run php artisan clear-compiled</li>
  <li>Checked permissions on the storage/* folders</li>
  <li>Forcing the namespace and/or fullpath of the TracksController in the routes file</li>
  </ul>
  
  <p>But nothing seems to be working.</p>
  
  <p>I even checked the vendor/composer/autoload_classmap.php file generated by composer and I cannot find the TracksController file there.</p>
  
  <p>Any clues?</p>