TanchoToplineCargo/routes/route.contacts.php

14 lines
1.0 KiB
PHP
Raw Permalink Normal View History

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