master_template/routes/CRUDgenerated/route.horoscope.php

15 lines
1.2 KiB
PHP
Raw Normal View History

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