18 lines
1.0 KiB
PHP
18 lines
1.0 KiB
PHP
|
<?php
|
||
|
use Illuminate\Support\Facades\Route;
|
||
|
use Modules\Admin\Http\Controllers\CastesController;
|
||
|
|
||
|
Route::prefix("caste")->as('castes.')->group(function () {
|
||
|
Route::get('/', [CastesController::class, 'index'])->name('index');
|
||
|
Route::get('/create', [CastesController::class, 'create'])->name('create');
|
||
|
Route::post('/store', [CastesController::class, 'store'])->name('store');
|
||
|
Route::post('/sort', [CastesController::class, 'sort'])->name('sort');
|
||
|
Route::post('/updatealias', [CastesController::class, 'updatealias'])->name('updatealias');
|
||
|
Route::get('/show/{id}', [CastesController::class, 'show'])->name('show');
|
||
|
Route::get('/edit/{id}', [CastesController::class, 'edit'])->name('edit');
|
||
|
Route::post('/update/{id}', [CastesController::class, 'update'])->name('update');
|
||
|
Route::get('/destroy/{id}', [CastesController::class, 'destroy'])->name('destroy');
|
||
|
Route::get('/toggle/{id}', [CastesController::class, 'toggle'])->name('toggle');
|
||
|
Route::get('/clone/{id}', [CastesController::class, 'clone'])->name('clone');
|
||
|
});
|