title: URL Parameter Passing with Laravel
body: <p>I want to visit a page like...</p>
  
  <pre><code>http://mysitelocaltion/user_name/user_id
  </code></pre>
  
  <p>This is just a virtual link, I have used a .htaccess -rewrite rule to internally pass "user_name" and "use_id" as get parameters for my actual page.</p>
  
  <p>How do I achieve the same in Laravel?</p>
  
  <p><strong>Update:</strong>
  This shall help (documentation)</p>
  
  <pre><code>Route::get('user/(:any)/task/(:num)', function ($username, $task_number) {
      // $username will be replaced by the value of (:any)
      // $task_number will be replaced by the integer in place of (:num)
      $data = array(
          'username' =&gt; $username,
          'task' =&gt; $task_number
      );
      return View::make('tasks.for_user', $data);
  });
  </code></pre>