title: Route vs. Controller in Laravel
body: <p>I was wondering about the best approach for laravel framework development. Most of the time and tutorials i go through, e.g: Laravel CodeHappy by Dayle, <a href="http://getlaravel.com/" rel="nofollow">example as what you see here is the same with his book</a>. Most Q&amp;A in stack overflow, i noted most of developers also put all the request handling on route.php. May i know is this great for cloud kind of big application code structure? In my concept, RESTful was designed for api while we can use controller for detect it's get, post, put, or delete. like this </p>
  
  <pre><code>if ($_POST)
      {
         // Try and login user
      }
      else
      {
         // Show login form
      }
  </code></pre>
  
  <p>but there're not much of tutorials/samples available. Am i getting wrong concept? If changing everything to controller, i got no idea on how to do it. like the validation &amp; getting input from controller. Is anyone have idea on this? Please advice. if example showing up would be the best ;) Thanks.</p>