You can use named routes:
Route::get('spiel', array('as' => 'spiel.index', 'uses' => 'SpielController@getIndex'));
//then
$u = URL::route('spiel.index', array(
'term' => 'termb',
'link' => 'type'
));
Or just append a query string (looks a bit ugly though):
$params = array('term' => 'termb', 'link' => 'type');
$queryString = http_build_query($params);
$u = URL::to(action('SpielController@getIndex') . '?' . $queryString);
In 4.2, I can easily use this :-
$params = array('term' => 'termb', 'link' => 'type');
$queryString = http_build_query($params);
URL::action('ProfileController@show', '?'.$queryString )
Not sure, about 4.1
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community