Raffales-LMS/routes/CRUDgenerated/route.institutions.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\InstitutionsController;
use Illuminate\Support\Facades\Route;
Route::prefix("institutions")->group(function () {
Route::get('/', [InstitutionsController::class, 'index'])->name('institutions.index');
Route::get('/create', [InstitutionsController::class, 'create'])->name('institutions.create');
Route::post('/store', [InstitutionsController::class, 'store'])->name('institutions.store');
Route::post('/sort', [InstitutionsController::class, 'sort'])->name('institutions.sort');
Route::post('/updatealias', [InstitutionsController::class, 'updatealias'])->name('institutions.updatealias');
Route::get('/show/{id}', [InstitutionsController::class, 'show'])->name('institutions.show');
Route::get('/edit/{id}', [InstitutionsController::class, 'edit'])->name('institutions.edit') ;
Route::post('/update/{id}', [InstitutionsController::class, 'update'])->name('institutions.update');
Route::delete('/destroy/{id}', [InstitutionsController::class, 'destroy'])->name('institutions.destroy');
Route::get('/toggle/{id}', [InstitutionsController::class, 'toggle'])->name('institutions.toggle');
});