StocksNew/routes/CRUDgenerated/route.companies.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

18 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\CompaniesController;
use Illuminate\Support\Facades\Route;
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');
});