title: Laravel dynamic route from MySQL
body: <p>I am trying to generate routes from one template "tuning.blade.php"</p>
  
  <p>I have a DB with 250 rows I would like to dynamically create 250 routes with one route or one  controller.</p>
  
  <p>I want to be able to use these URLs</p>
  
  <pre><code>laravel.dev/tuning/(field from DB row 1)
  laravel.dev/tuning/(field from DB row 2 and so on)
  </code></pre>
  
  <p>I want to put the DB requests in tuning.blade.php so that this template can display all 250 rows using 250 different URLS</p>
  
  <p>I have tried to use the first example from Laravel Docs</p>
  
  <pre><code>class UserController extends BaseController {
  
      /**
       * Show the profile for the given user.
       */
      public function showProfile($id)
      {
          $user = User::find($id);
  
          return View::make('user.profile', array('user' =&gt; $user));
      }
  
  }
  
  
  Route::get('user/{id}', 'UserController@showProfile');
  </code></pre>
  
  <p>I also got some interesting search results from <a href="http://forumsarchive.laravel.io/viewtopic.php?id=9010" rel="nofollow">http://forumsarchive.laravel.io/viewtopic.php?id=9010</a>
  But alsas I always end up with a notfound exception</p>
  
  <p>But I am unsure what to put in my tuning template to display anything at all. my Tuning template reside in app/views/home/tuning.blade.php</p>
  
  <p>Currently I have got the error "Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException"</p>
  
  <p>Can anyone put me in the right direction of where I can find a resource to help me understand?</p>