Raffales-LMS/routes/CRUDgenerated/route.settings.php

15 lines
1.1 KiB
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
<?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');
});