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