New-OMIS/routes/CRUDgenerated/route.faqs.php

15 lines
1.0 KiB
PHP
Raw Permalink Normal View History

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