master_template/routes/route.horoscope.php
2024-06-18 11:31:51 +05:45

15 lines
1.2 KiB
PHP

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