New-OMIS/routes/CRUDgenerated/route.users.php

17 lines
1010 B
PHP
Raw Permalink Normal View History

2024-04-05 05:22:15 +00:00
<?php
use App\Http\Controllers\UsersController;
use Illuminate\Support\Facades\Route;
2024-04-07 07:28:58 +00:00
2024-04-05 05:22:15 +00:00
Route::prefix("users")->group(function () {
2024-04-07 07:28:58 +00:00
Route::get('/', [UsersController::class, 'index'])->name('users.index');
Route::get('/create', [UsersController::class, 'create'])->name('users.create');
Route::post('/store', [UsersController::class, 'store'])->name('users.store');
Route::post('/sort', [UsersController::class, 'sort'])->name('users.sort');
Route::post('/updatealias', [UsersController::class, 'updatealias'])->name('users.updatealias');
Route::get('/show/{id}', [UsersController::class, 'show'])->name('users.show');
// Route::get('/edit/{id}', [UsersController::class, 'edit'])->name('users.edit') ;
Route::post('/update/{id}', [UsersController::class, 'update'])->name('users.update');
Route::delete('/destroy/{id}', [UsersController::class, 'destroy'])->name('users.destroy');
Route::get('/toggle/{id}', [UsersController::class, 'toggle'])->name('users.toggle');
});