annotate routes/web.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 9d7dcd54c677
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
1 <?php
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
2
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
3 use App\Http\Controllers\ProfileController;
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
4 use Illuminate\Support\Facades\Route;
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
5
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
6 Route::get('/', function () {
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
7 return view('welcome');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
8 });
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
9
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
10 Route::get('/dashboard', function () {
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
11 return view('dashboard');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
12 })->middleware(['auth', 'verified'])->name('dashboard');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
13
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
14 Route::middleware('auth')->group(function () {
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
15 Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
16 Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
17 Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
18 });
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
19
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
20 require __DIR__.'/auth.php';