TanchoToplineCargo/routes/CRUDgenerated/route.settings.php
2024-05-05 10:32:49 +05:45

14 lines
1.0 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');
});