1Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
1Route::view('/welcome', 'welcome');
2
3Route::view('/welcome', 'welcome', ['name' => 'Taylor']);
1// laravel 8 routing
2
3// get
4Route::get('/users', [UserController::class, 'index']);
5
6// resource
7Route::resource('/users', UserController::class);
1Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
2 //
3});