TanchoToplineCargo/routes/route.companies.php

14 lines
1.0 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +00:00
<?php
use App\Http\Controllers\CompaniesController;
use Illuminate\Support\Facades\Route;
Route::prefix("companies")->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::delete('/destroy/{id}', [CompaniesController::class, 'destroy'])->name('companies.destroy');
});