Mercurial > borealpoint
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1:8971e685366b | 2:90296614b7e2 |
|---|---|
| 1 <?php | |
| 2 | |
| 3 use App\Http\Controllers\ClientController; | |
| 4 use Illuminate\Support\Facades\Route; | |
| 5 | |
| 6 Route::controller(ClientController::class) | |
| 7 ->middleware(['web', 'auth']) | |
| 8 ->prefix('clients') | |
| 9 ->as('clients.') | |
| 10 ->group(function () { | |
| 11 Route::get('/', 'index')->name('index'); | |
| 12 Route::post('/get_data', 'get_data')->name('get_data'); | |
| 13 Route::get('/create', 'create')->name('create'); | |
| 14 Route::get('/{client}/edit', 'edit')->name('edit'); | |
| 15 Route::get('/{client}', 'show')->name('show'); | |
| 16 Route::get('/{client}/load', 'load')->name('load'); | |
| 17 | |
| 18 Route::post('/store', 'store')->name('store'); | |
| 19 Route::put('/udpate/{client}', 'update')->name('update'); | |
| 20 Route::delete('/destroy/{client}', 'destroy')->name('destroy'); | |
| 21 }); |
