title: Laravel Creating Dynamic Routes to controllers from Mysql database
body: <p>I have the following table: group_pages in mysql database with page name route name :</p>
  
  <pre><code>   id   name      route
    --------------------
      0   About      about
      1   Contact    contact
      2   Blog       blog
  </code></pre>
  
  <p>what I am trying to do is to create dynamic routes in my : routes.php ? </p>
  
  <p>Where if I go to for example: <code>/about</code> it will go to <code>AboutController.php</code> ( which will be created dynamically) is that possible? is it possible to create a dynamic controller file? </p>
  
  <p>I am trying to create dynamic pages routes that links to a controller</p>
  
  <p>example i want to generate this dynamically in my <code>routes.php</code></p>
  
  <pre><code>Route::controller('about', 'AboutController');
  
  Route::controller('contact', 'ContactController');
  
  Route::controller('blog', 'BlogController');
  </code></pre>