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

18 lines
1.2 KiB
PHP
Raw Permalink Normal View History

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