title: Laravel Routing to controller actions
body: <p>I've been trying for a while now to get laravel to route to my controller actions.
  I'm not sure of the best way to do this in the laravel framework.</p>
  
  <p>How im picturing it in my head is like this.</p>
  
  <p>I have a route setup to link to my controllers actions. so when i type domain.com/Home/Profile
  It will call the HomeController's profile action. which will do some processing and display the view on the page. ( like mvc4)</p>
  
  <p>I may be going about this the wrong way but im just trying to avoid making a route for every view. I'm more after the correct method to this problem or whatever laravel devs do as a standard practice because it just feels strange to have a route for every view.</p>
  
  <p>So far this is my code: routes.php</p>
  
  <pre><code>Route::get('/', 'HomeController@index');
  
  Route::any('/{controller}/{action?}', function ($controller, $action = 'index') 
  {
      $class = $controller.'Controller';
      $controller = new $class()
  
      return $controller-&gt;{$action}();
  
  });
  </code></pre>
  
  <p>HomeController:</p>
  
  <pre><code>class HomeController extends BaseController 
  {
      protected $layout = 'layouts.master';
  
  
      public function index()
      {
          $this-&gt;layout-&gt;content = View::make('index');
          return View::make('index');
      }
  
      public function profile()
      {
          $this-&gt;layout-&gt;content = View::make('profile');
      }
  } 
  </code></pre>
  
  <p>Thanks for any help in advance.</p>