TanchoToplineCargo/routes/CRUDgenerated/route.teams.php
2024-05-05 10:32:49 +05:45

14 lines
995 B
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');
});