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

15 lines
1.3 KiB
PHP
Raw Normal View History

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