TanchoToplineCargo/routes/route.subscribers.php

14 lines
1.1 KiB
PHP
Raw Normal View History

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