group(function () { Route::get('/', [NewsController::class, 'index'])->name('news.index'); Route::get('/create', [NewsController::class, 'create'])->name('news.create'); Route::post('/store', [NewsController::class, 'store'])->name('news.store'); Route::post('/sort', [NewsController::class, 'sort'])->name('news.sort'); Route::post('/updatealias', [NewsController::class, 'updatealias'])->name('news.updatealias'); Route::get('/show/{id}', [NewsController::class, 'show'])->name('news.show'); Route::get('/edit/{id}', [NewsController::class, 'edit'])->name('news.edit') ; Route::post('/update/{id}', [NewsController::class, 'update'])->name('news.update'); Route::delete('/destroy/{id}', [NewsController::class, 'destroy'])->name('news.destroy'); Route::get('/toggle/{id}', [NewsController::class, 'toggle'])->name('news.toggle'); });