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

16 lines
1.3 KiB
PHP
Raw Normal View History

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