# Using Request Route::get('user/{name}', function (Request $request) { return $request->route('name'); });
Route::get('user/{id}', function ($id) { return 'User '.$id; });
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::view('/welcome', 'welcome'); Route::view('/welcome', 'welcome', ['name' => 'Taylor']);
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) { // });