master_template/routes/CRUDgenerated/route.economies.php

15 lines
1.2 KiB
PHP
Raw Permalink Normal View History

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