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