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

15 lines
1.1 KiB
PHP

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