master_template/routes/CRUDgenerated/route.videos.php

15 lines
1.1 KiB
PHP
Raw Normal View History

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