Raffales-LMS/routes/CRUDgenerated/route.contactus.php

15 lines
1.2 KiB
PHP
Raw Permalink Normal View History

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