Mercurial > borealpoint
diff routes/resources/Client.php @ 2:90296614b7e2 default tip
Adding in the base for the clients table
| author | luka |
|---|---|
| date | Thu, 28 Aug 2025 20:55:40 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/routes/resources/Client.php Thu Aug 28 20:55:40 2025 -0400 @@ -0,0 +1,21 @@ +<?php + +use App\Http\Controllers\ClientController; +use Illuminate\Support\Facades\Route; + +Route::controller(ClientController::class) + ->middleware(['web', 'auth']) + ->prefix('clients') + ->as('clients.') + ->group(function () { + Route::get('/', 'index')->name('index'); + Route::post('/get_data', 'get_data')->name('get_data'); + Route::get('/create', 'create')->name('create'); + Route::get('/{client}/edit', 'edit')->name('edit'); + Route::get('/{client}', 'show')->name('show'); + Route::get('/{client}/load', 'load')->name('load'); + + Route::post('/store', 'store')->name('store'); + Route::put('/udpate/{client}', 'update')->name('update'); + Route::delete('/destroy/{client}', 'destroy')->name('destroy'); + });
