Mercurial > packages > auth
comparison stubs/default/routes/web.php @ 0:90e38de8f2ba
Initial Commit
| author | luka |
|---|---|
| date | Wed, 13 Aug 2025 22:17:20 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:90e38de8f2ba |
|---|---|
| 1 <?php | |
| 2 | |
| 3 use App\Http\Controllers\ProfileController; | |
| 4 use Illuminate\Support\Facades\Route; | |
| 5 | |
| 6 Route::get('/', function () { | |
| 7 return view('welcome'); | |
| 8 }); | |
| 9 | |
| 10 Route::get('/dashboard', function () { | |
| 11 return view('dashboard'); | |
| 12 })->middleware(['auth', 'verified'])->name('dashboard'); | |
| 13 | |
| 14 Route::middleware('auth')->group(function () { | |
| 15 Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); | |
| 16 Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); | |
| 17 Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); | |
| 18 }); | |
| 19 | |
| 20 require __DIR__.'/auth.php'; |
