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

18 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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