TanchoToplineCargo/routes/route.teams.php

14 lines
995 B
PHP
Raw Permalink Normal View History

2024-05-05 04:47:49 +00:00
<?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');
});