name('index'); Route::prefix('flights')->controller(FlightController::class)->name('flights.')->group(function (){ Route::get('/' , 'index')->name('index'); Route::get('{flight}','show')->name('show'); }); Route::prefix('tours')->controller(TourController::class)->name('tours.')->group(function (){ Route::get('/' , 'index')->name('index'); Route::get('{tour}','show')->name('show'); }); Route::prefix('account')->name('accounts.')->middleware('auth')->group(function (){ Route::controller(ProfileController::class)->group(function () { Route::get('/profile', 'index')->name('profile'); Route::get('/get-cities/{province_id}', 'getCities')->name('get-cities'); }); Route::prefix('edit-profile')->name('edit-profile.')->controller(EditProfileController::class)->group(function () { Route::get('/', 'index')->name('index'); Route::post('/', 'update')->name('update'); Route::post('change-password', 'changePassword')->name('change-password'); }); });