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

15 lines
1.1 KiB
PHP

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