master_template/routes/route.horoscope.php

15 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2024-06-18 05:46:51 +00:00
<?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');
});