title: Dynamic routes in laravel instead of manual routes
body: <p>I want to prevent write all route in Laravel route.php,actually i follow MVC routing like this www.example.com/controller/action/p1/p2/p3
  if you have any good idea give it to me,
  i wrote this</p>
  
  <pre><code>$controller = ucfirst(Request::segment(1));
  $controller = $controller . 'Controller';
  $result=App::make('indexController')-&gt;ChechIfExistController($controller);
  if($result){    
          if(Request::segment(2))
              $action=Request::segment(2);
          else
              $action='index';
  
      if(Request::segment(5))
              Route::any('/{controller?}/{action?}/{p1?}/{p2?}/{p3?}',array('uses'=&gt;$controller.'@'.$action));
          else if(Request::segment(4))
              Route::any('/{controller?}/{action?}/{p1?}/{p2?}',array('uses'=&gt;$controller.'@'.$action));
          else if(Request::segment(3))
              Route::any('/{controller?}/{action?}/{p1?}',array('uses'=&gt;$controller.'@'.$action));
          else
              Route::any('/{controller?}/{action?}',array('uses'=&gt;$controller.'@'.$action));
  
  }   else{
      echo '404';
      EXIT;
  
  }
  </code></pre>
  
  <p>but i don't know how to control and check controller and action in laravel to understand if it exist or not.
  i need your help.
  thanks a lot.</p>
  
  <p>ifound it,this code fix the problem and check if action exist or not,but i would like to do that with laravel but it seems laravel does not have any thing for checking controller and actions</p>
  
  <pre><code> $controller=='Controller'?$controller='IndexController':$controller;
  
          $controllers=new $controller ();
  
          if(method_exists($controllers,$action)){...}
  </code></pre>
  
  <p>and in composer define my route,
  that's all</p>