title: laravel MVC execution flow
body: <p>I am new to laravel framework. I am trying to edit laravel webapplication. </p>
  
  <p>Website is running in EC-2 instance of AWS.
  I am doing SCP with filezilla.</p>
  
  <p>I found that /var/www/html/app has one route.php file. 
  one of the route defined over there is :</p>
  
  <pre><code>#get checkout page
  Route::get('/checkout', ['as' =&gt; 'checkout', 'uses' =&gt; 'CartController@getCheckout']);
  </code></pre>
  
  <p>When I hit example.com/checkout</p>
  
  <p>It moves me to example.com/cart </p>
  
  <p><strong>getCheckout() of cart controller</strong></p>
  
  <pre><code>// show checkout form
      public function getCheckout()
      {
  
          if(getCartTotal())
          {
  
              return View::make('cart.checkout'); 
  
  
          }else {
  
              return Redirect::route('cart')-&gt;withCartErrorMessage('Please add some items to cart!');
          }
      }
  </code></pre>
  
  <p>My question is . when i change above route to product page or any thing else. it does not reflects and still moves me to wxample.com/cart. </p>
  
  <p>even I removed route.php file and then hit example.com/checkout , it still moves me to example.com/cart</p>
  
  <p>Why is it so ? </p>
  
  <p><strong>Edit :</strong> </p>
  
  <p>I tested with php artisan routes command ,it lists all the routes from routes.php , and when i remove route.php file from /var/www/html/app folder, above command says Your application doesn't have any routes.</p>
  
  <p>that means i am editing proper routes.php file. 
  But why changed routes in /var/www/html/app routes.php file are not being reflected ? </p>