master_template/routes/route.authors.php

15 lines
1.1 KiB
PHP
Raw Normal View History

2024-06-15 16:38:54 +00:00
<?php
use App\Http\Controllers\AuthorsController;
use Illuminate\Support\Facades\Route;
Route::prefix("authors")->group(function () {
Route::get('/', [AuthorsController::class, 'index'])->name('authors.index');
Route::get('/create', [AuthorsController::class, 'create'])->name('authors.create');
Route::post('/store', [AuthorsController::class, 'store'])->name('authors.store');
Route::post('/sort', [AuthorsController::class, 'sort'])->name('authors.sort');
Route::post('/updatealias', [AuthorsController::class, 'updatealias'])->name('authors.updatealias');
Route::get('/show/{id}', [AuthorsController::class, 'show'])->name('authors.show');
Route::get('/edit/{id}', [AuthorsController::class, 'edit'])->name('authors.edit') ;
Route::post('/update/{id}', [AuthorsController::class, 'update'])->name('authors.update');
Route::delete('/destroy/{id}', [AuthorsController::class, 'destroy'])->name('authors.destroy');
Route::get('/toggle/{id}', [AuthorsController::class, 'toggle'])->name('authors.toggle');
});