StocksNew/routes/CRUDgenerated/route.dags.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

16 lines
1.1 KiB
PHP

<?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');
});