master_template/routes/route.newscategories.php

15 lines
1.3 KiB
PHP
Raw Normal View History

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