// capture a user's ID from the URL by defining route parameters: Route::get('user/{id}', function ($id) { return 'User '.$id; });