feat: update edit for flights and add create flights in admin panel
This commit is contained in:
+8
-8
@@ -50,20 +50,20 @@ Route::prefix('admin')->name('admin.')->group(function () {
|
||||
Route::delete('{tour}', 'destroy')->name('destroy');
|
||||
|
||||
});
|
||||
Route::prefix('flights')->name('flights.')->group(function () {
|
||||
Route::prefix('flights')->name('flights.')->group(function () {
|
||||
|
||||
Route::get('/', [FlightController::class, 'index'])->name('index');
|
||||
Route::get('/', [FlightController::class, 'index'])->name('index');
|
||||
|
||||
Route::get('/{flight}/edit', [FlightController::class, 'edit'])->name('edit');
|
||||
Route::get('/create', [FlightController::class, 'create'])->name('create');
|
||||
|
||||
Route::put('/{flight}', [FlightController::class, 'update'])->name('update');
|
||||
Route::post('/', [FlightController::class, 'store'])->name('store');
|
||||
|
||||
Route::get('/flights/create', [FlightController::class, 'create'])->name('create');
|
||||
Route::get('/{flight}/edit', [FlightController::class, 'edit'])->name('edit');
|
||||
|
||||
Route::post('/flights', [FlightController::class, 'store'])->name('store');
|
||||
Route::put('/{flight}', [FlightController::class, 'update'])->name('update');
|
||||
|
||||
Route::delete('/{flight}', [FlightController::class, 'destroy'])->name('destroy');
|
||||
});
|
||||
Route::delete('/{flight}', [FlightController::class, 'destroy'])->name('destroy');
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user