title: Routing issue in Laravel 5.2
body: <p>I am facing a strange issue with Larave 5.2 routing. Please find below details. </p>
  
  <p>1) I have created HomeController with index() in it and set my route for "/". It was working fine. </p>
  
  <p>2)After that I have renamed HomeController.php to Readme_couchbasenotes.php and created fresh HomeController. Since then my route is not working properly. Whenever I give HomeController@index it is looking for index in Readme_couchbasenotes.php. </p>
  
  <p>routes.php:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  /*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the controller to call when that URI is requested.
  |
  */
  
  
  //Route::auth();
  
  Route::get('/','HomeController@index');</code></pre>
  </div>
  </div>
  </p>
  
  <p>(Fresh) HomeController:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  
  class HomeController extends Controller {
  
      public function index() {
          return "Hello";
      }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Readme_couchbasenotes.php</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use CouchbaseCluster;
  
  class HomeController_copy extends Controller {
  
      public function index() {
  
  
          /**
           * Different ways of doing CRUD operations on couchbase
           */
          
  //---------------------------------------------------------        
          /**
           * To Create PRIMARY INDEX for data buckets 
           */
  //        $query = 'CREATE PRIMARY INDEX `laravel-sample-primary-index` ON `laravel` USING VIEW;';
  //        $res = \DB::connection()-&gt;bucket('laravel')-&gt;select($query);
  //        var_dump($res);die;
  //--------------------------------------------------------------
          
          
          /**
           * To Select set of records from data buckets
           */
  //  Using \DB:: facades  
  //          
  //      $query = 'SELECT * FROM system:indexes WHERE name="beer-sample-primary-index";';
  //        $res = \DB::connection('couchbase')-&gt;table('laravel')-&gt;where('name', 'Sri Harsha')-&gt;get();
  //        $doc = Json_encode($res, True);
  //        var_dump($doc);die;
  //        
  //  
  //              
  /**
   * Using OOP concepts with inbuilt couchbase methods
   */
          
          
          echo  "&lt;br&gt;After Retrieve&lt;br&gt;";
          echo  "------------------&lt;br&gt;";         
          $Cluster = New CouchbaseCluster('http://127.0.0.1:8091');
          $bucket = $Cluster-&gt;OpenBucket('laravel');
  
          Try {
              $result = $bucket-&gt;get('test2');
          } Catch (Exception $e) {
              Echo "CouchbaseException:" . $e-&gt;getMessage() . " \n";
          }
          $doc = $result-&gt;value;
          echo $doc-&gt;_id . "&lt;br&gt;" . $doc-&gt;name . "&lt;br&gt;";
  
  
          /**
           * To Update records into data buckets
           */
          echo "&lt;br&gt; After Update&lt;br&gt;";
          echo  "------------------&lt;br&gt;";
          $doc-&gt;name = 'Stranger';
          $u_result = $bucket-&gt;replace('test2', $doc);
  
          $doc2 = $bucket-&gt;get('test2')-&gt;value;
          echo $doc2-&gt;_id . "&lt;br&gt;" . $doc2-&gt;name . "&lt;br&gt;";
          
  
          /**
           *   To Insert records to data buckets
           */
          echo "&lt;br&gt; After Create.New Record Details&lt;br&gt;";
          echo  "----------------------------------------&lt;br&gt;";
          $data = [
              '_id' =&gt; 'test3_insert',
              'name' =&gt; 'Sri Harsha 3 insert'
              ];
          $bucket-&gt;Insert('test3', $data);
          $doc3= $bucket-&gt;get('test3')-&gt;value;
          echo $doc3-&gt;_id . "&lt;br&gt;" . $doc3-&gt;name . "&lt;br&gt;";
          
          /**
           * To Delete records from data buckets
           */     
          echo  "&lt;br&gt;After Delete&lt;br&gt;";
          echo  "------------------&lt;br&gt;";  
          $bucket-&gt;Remove('test1');  
          echo "&lt;br&gt;test1 has been deleted.";
  
          
  //
      }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>3) I even tried </p>
  
  <p>php artisan cache:clear</p>
  
  <p>php artisan clear-compiled</p>
  
  <p>php artisan route:clear</p>
  
  <p>Still it is looking for Readme_couchbasenotes.php whenever     HomeController is mentioned. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>srturaka@srturaka-pc:~/Desktop/work/dev.laravel5.2.com/public_html$ php artisan route:list
  
                                                                                                                                                 
    [ErrorException]                                                                                                                             
    include(/home/srturaka/Desktop/work/dev.laravel5.2.com/public_html/app/Http/Controllers/Readme_couchbasenotes.php): failed to open stream:   
    No such file or directory                                                                                                                    
                                                                                                                                                 </code></pre>
  </div>
  </div>
  </p>
  
  <p>And one thing, this issue is only for HomeController because I renamed it, others are working fine which are new controllers. </p>
  
  <p>Please suggest, if I miss anything. Thanks</p>