master_template/routes/CRUDgenerated/route.advertisements.php
2024-06-18 16:26:58 +05:45

15 lines
1.3 KiB
PHP

<?php
use App\Http\Controllers\AdvertisementsController;
use Illuminate\Support\Facades\Route;
Route::prefix("advertisements")->group(function () {
Route::get('/', [AdvertisementsController::class, 'index'])->name('advertisements.index');
Route::get('/create', [AdvertisementsController::class, 'create'])->name('advertisements.create');
Route::post('/store', [AdvertisementsController::class, 'store'])->name('advertisements.store');
Route::post('/sort', [AdvertisementsController::class, 'sort'])->name('advertisements.sort');
Route::post('/updatealias', [AdvertisementsController::class, 'updatealias'])->name('advertisements.updatealias');
Route::get('/show/{id}', [AdvertisementsController::class, 'show'])->name('advertisements.show');
Route::get('/edit/{id}', [AdvertisementsController::class, 'edit'])->name('advertisements.edit') ;
Route::post('/update/{id}', [AdvertisementsController::class, 'update'])->name('advertisements.update');
Route::delete('/destroy/{id}', [AdvertisementsController::class, 'destroy'])->name('advertisements.destroy');
Route::get('/toggle/{id}', [AdvertisementsController::class, 'toggle'])->name('advertisements.toggle');
});