Route::get('/users/{name}', function ($name) {
return 'This is a user ' . $name;
});
Two parameters passed through the request URLRoute::get('/users/{name}/{id}', function ($name, $id) {
return 'This is a user ' . $name .' with an id of '. $id;
});