Skip to content

Commit 847293c

Browse files
committed
Update web.php with route groups
Took 22 seconds
1 parent 667f980 commit 847293c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This package is designed to be used on a fresh Laravel project.
3131
- [ ] Add an example CRUD
3232
- [x] Add UserSeeder with a default admin account
3333
- [ ] Add option to enable/disable locales
34-
- [ ] Update web.php with groups
34+
- [x] Update web.php with groups
3535
- [ ] Include laravel ide helper support
3636
- [ ] Refactor/Simplify SideBar component
3737
- [ ] Add Roles/Permissions support

routes/web.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
'phpVersion' => PHP_VERSION,
2424
]);
2525
});
26-
Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
26+
27+
Route::prefix('admin')->name('admin.')->middleware('auth', 'verified')->group(function () {
28+
Route::inertia('dashboard', 'Admin/Dashboard')->name('dashboard');
29+
});
2730

2831
Route::get('language/{lang}', function ($lang) {
2932
session(['locale' => $lang]);

0 commit comments

Comments
 (0)