aaronlord/laroute — pull request #10 by stanfieldr (2014-08-03 21:29:33+00:00)
Title: Strips out optional parameters on a route if not supplied

Before if I had a route such as:

Route::get('editor/{id?}', array(
'as' => 'designer.edit',
'uses' => 'Focus\FormBuilder\Controller\FormBuilderController@edit'
));

laroute would replace the optional parameter with undefined.

laroute.route('designer.edit'); // yields /editor/undefined

However, now laroute will strip out the optional parameter.

laroute.route('designer.edit') // yields /editor