At the moment I'm just doing $theUrl = action('CalController@index') . '/' . $first . '/' . $last . '/' . $age;
... which works, but it's not exactly pretty.
you can use like this;
Route::get( '/ical/{name}/{surname}/{userId}', [ 'as' => 'ical', 'uses' => 'AalController@index' ] )->where( [
'name' => '[A-Za-z]+',
'surname' => '[A-Za-z]+',
'userId' => '[0-9]+'
] );
after you can call the route
$url = URL::route('ical', ['name'=>'john', 'surname'=>'smith', 'userId'=>15]);
its result = http://example.com/ical/john/smith/15
barisbora said:
you can use like this;
(snip)
Cool, thanks. I'll give this a go when I get home.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community