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::get('/profile' ,[ProfileController::class , 'index'])->name('profile'); });