master_template/routes/route.advertisement.php
2024-06-15 22:23:54 +05:45

15 lines
1.2 KiB
PHP

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