how to create new route file and use it in laravel 8 code example
Example 1: laravel 8 route
Route::get(
'/user/profile',
[UserProfileController::class, 'show']
)->name('profile');
Example 2: how to create route in laravel
Route::match(['get', 'post'], '/', function () {
//
});