Skip to content

Commit

Permalink
Add settings to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
andyksaw committed Jan 15, 2025
1 parent 1b10e36 commit d16fd94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resources/views/front/components/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<a href="{{ route('manage.index') }}" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Staff Panel</a>
</li>
@endcan
<li>
<a href="{{ route('front.account.settings') }}" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
</li>
</ul>
<ul class="py-2" aria-labelledby="user-menu-button">
<li>
Expand Down
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
'prefix' => 'account',
'middleware' => ['auth', 'activated', 'mfa'],
], function () {
Route::redirect(uri: 'settings', destination: 'edit');
Route::redirect(uri: 'settings', destination: 'settings/email')
->name('front.account.settings');

Route::get('/', [AccountProfileController::class, 'show'])
->name('front.account.profile');
Expand Down

0 comments on commit d16fd94

Please sign in to comment.