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

16 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2024-04-05 05:22:15 +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('/fetch/bycountry', [InstitutionsController::class, 'fetchbycountry'])->name('institutions.fetchbycountry');
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');
});