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

15 lines
1.3 KiB
PHP
Raw Normal View History

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