title: Laravel ClassLoader trying to load an old version of my model
body: <p>So a while back I decided to redo one of my models in Laravel completely, but I wanted to hold on to the original copy of the file just in case. So I renamed it to something like MyModel (OLD).php and left it there in the models folder next to the new model.</p>
  
  <p>Now that I understand Laravel a bit better, I realize that wasn't a great idea, but in any case everything seemed to work for months. Then today, I made a minor update (modifying a database query) to one of the functions in my new model and suddenly Laravel is trying to load the old copy of my model. I finally moved the old copy out of the models folder and into a backup folder completely outside of my laravel application, but now Laravel throws the error:</p>
  
  <pre><code>include(pathToMyModels/MyModel (OLD).php): failed to open stream: No such file or directory
  </code></pre>
  
  <p>referring to this section of ClassLoader.php</p>
  
  <pre><code>/**
  * Scope isolated include.
  *
  * Prevents access to $this/self from included files.
  */
  function includeFile($file)
  {
  include $file;
  }
  </code></pre>
  
  <p>I tried undoing the modification to the model, changing the route and controller function name, clearing laravel's cache, clearing the browser cache, using different browsers, but nothing seems to work except to manually include the model's php file before calling the class it contains. What can I do to get Laravel to automatically recognize my model like it does all the others I have?</p>