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