annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
1 <?php
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
2
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
3 use App\Http\Controllers\ClientController;
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
4 use Illuminate\Support\Facades\Route;
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
5
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
6 Route::controller(ClientController::class)
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
7 ->middleware(['web', 'auth'])
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
8 ->prefix('clients')
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
9 ->as('clients.')
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
10 ->group(function () {
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
11 Route::get('/', 'index')->name('index');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
12 Route::post('/get_data', 'get_data')->name('get_data');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
13 Route::get('/create', 'create')->name('create');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
14 Route::get('/{client}/edit', 'edit')->name('edit');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
15 Route::get('/{client}', 'show')->name('show');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
16 Route::get('/{client}/load', 'load')->name('load');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
17
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
18 Route::post('/store', 'store')->name('store');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
19 Route::put('/udpate/{client}', 'update')->name('update');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
20 Route::delete('/destroy/{client}', 'destroy')->name('destroy');
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
21 });