TanchoToplineCargo/routes/route.companyarticles.php

14 lines
1.2 KiB
PHP
Raw Normal View History

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