title: how to add optional parameter to laravel named routes?
body: <p>Using Laravel 4.2 and according to <a href="https://laravel.com/docs/4.2/routing" rel="nofollow noreferrer">routing documentation</a></p>
  
  <p>We can define a named route as</p>
  
  <pre><code>Route::get('user/profile', array('as' =&gt; 'profile', 'uses' =&gt; 'UserController@showProfile'));
  </code></pre>
  
  <p>And define an optional parameter with this other way</p>
  
  <pre><code>Route::get('user/{name?}', function($name = null)
  {
      return $name;
  });
  </code></pre>
  
  <p>I want to add an optional parameter to a named route. How to combine both ?</p>