New-OMIS/routes/CRUDgenerated/route.campaignlocations.php
2024-04-05 11:07:15 +05:45

16 lines
1.4 KiB
PHP

<?php
use App\Http\Controllers\CampaignlocationsController;
use Illuminate\Support\Facades\Route;
Route::prefix("campaignlocations")->group(function () {
Route::get('/', [CampaignlocationsController::class, 'index'])->name('campaignlocations.index');
Route::get('/create', [CampaignlocationsController::class, 'create'])->name('campaignlocations.create');
Route::post('/store', [CampaignlocationsController::class, 'store'])->name('campaignlocations.store');
Route::post('/sort', [CampaignlocationsController::class, 'sort'])->name('campaignlocations.sort');
Route::post('/updatealias', [CampaignlocationsController::class, 'updatealias'])->name('campaignlocations.updatealias');
Route::get('/show/{id}', [CampaignlocationsController::class, 'show'])->name('campaignlocations.show');
Route::get('/edit/{id}', [CampaignlocationsController::class, 'edit'])->name('campaignlocations.edit') ;
Route::post('/update/{id}', [CampaignlocationsController::class, 'update'])->name('campaignlocations.update');
Route::get('/destroy/{id}', [CampaignlocationsController::class, 'destroy'])->name('campaignlocations.destroy');
Route::get('/toggle/{id}', [CampaignlocationsController::class, 'toggle'])->name('campaignlocations.toggle');
Route::get('/clone/{id}', [CampaignlocationsController::class, 'clone'])->name('campaignlocations.clone');
});