laravel from route code example
Example 1: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Example 2: laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});