master_template/routes/route.comments.php
2024-06-23 17:02:56 +05:45

15 lines
1.1 KiB
PHP

<?php
use App\Http\Controllers\CommentsController;
use Illuminate\Support\Facades\Route;
Route::prefix("comments")->group(function () {
Route::get('/', [CommentsController::class, 'index'])->name('comments.index');
Route::get('/create', [CommentsController::class, 'create'])->name('comments.create');
Route::post('/store', [CommentsController::class, 'store'])->name('comments.store');
Route::post('/sort', [CommentsController::class, 'sort'])->name('comments.sort');
Route::post('/updatealias', [CommentsController::class, 'updatealias'])->name('comments.updatealias');
Route::get('/show/{id}', [CommentsController::class, 'show'])->name('comments.show');
Route::get('/edit/{id}', [CommentsController::class, 'edit'])->name('comments.edit') ;
Route::post('/update/{id}', [CommentsController::class, 'update'])->name('comments.update');
Route::delete('/destroy/{id}', [CommentsController::class, 'destroy'])->name('comments.destroy');
Route::get('/toggle/{id}', [CommentsController::class, 'toggle'])->name('comments.toggle');
});