StocksNew/routes/CRUDgenerated/route.dags.php

16 lines
1.1 KiB
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?php
use App\Http\Controllers\DagsController;
use Illuminate\Support\Facades\Route;
Route::prefix("dags")->group(function () {
Route::get('/', [DagsController::class, 'index'])->name('dags.index');
Route::get('/create', [DagsController::class, 'create'])->name('dags.create');
Route::post('/store', [DagsController::class, 'store'])->name('dags.store');
Route::post('/sort', [DagsController::class, 'sort'])->name('dags.sort');
Route::post('/updatealias', [DagsController::class, 'updatealias'])->name('dags.updatealias');
Route::get('/show/{id}', [DagsController::class, 'show'])->name('dags.show');
Route::get('/edit/{id}', [DagsController::class, 'edit'])->name('dags.edit') ;
Route::post('/update/{id}', [DagsController::class, 'update'])->name('dags.update');
Route::get('/destroy/{id}', [DagsController::class, 'destroy'])->name('dags.destroy');
Route::get('/toggle/{id}', [DagsController::class, 'toggle'])->name('dags.toggle');
Route::get('/clone/{id}', [DagsController::class, 'clone'])->name('dags.clone');
});