master_template/routes/CRUDgenerated/route.adcategories.php

15 lines
1.2 KiB
PHP
Raw Normal View History

2024-06-18 10:41:58 +00:00
<?php
use App\Http\Controllers\AdcategoriesController;
use Illuminate\Support\Facades\Route;
Route::prefix("adcategories")->group(function () {
Route::get('/', [AdcategoriesController::class, 'index'])->name('adcategories.index');
Route::get('/create', [AdcategoriesController::class, 'create'])->name('adcategories.create');
Route::post('/store', [AdcategoriesController::class, 'store'])->name('adcategories.store');
Route::post('/sort', [AdcategoriesController::class, 'sort'])->name('adcategories.sort');
Route::post('/updatealias', [AdcategoriesController::class, 'updatealias'])->name('adcategories.updatealias');
Route::get('/show/{id}', [AdcategoriesController::class, 'show'])->name('adcategories.show');
Route::get('/edit/{id}', [AdcategoriesController::class, 'edit'])->name('adcategories.edit') ;
Route::post('/update/{id}', [AdcategoriesController::class, 'update'])->name('adcategories.update');
Route::delete('/destroy/{id}', [AdcategoriesController::class, 'destroy'])->name('adcategories.destroy');
Route::get('/toggle/{id}', [AdcategoriesController::class, 'toggle'])->name('adcategories.toggle');
});