Route::get('user/{id}', function ($id) { return 'User '.$id; });
Route::pattern('id', '[0-9]+'); Route::get('user/{id}', function ($id) { // Only executed if {id} is numeric... });
Route::view('/welcome', 'welcome'); Route::view('/welcome', 'welcome', ['name' => 'Taylor']);
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) { // });