Skip to content

User Account Pages

These pages handle the authenticated customer's dashboard and account management.


My Account Dashboard

URL: /user/myaccount Template: Modules/Application/resources/views/user/myaccount.blade.php

The main landing page for logged-in users. Typically displays links to order history, address book, wishlist, and account settings.

Page Variables

Variable Type Description
$page->user object The currently logged-in user object

Common Sections

Usually, this page is just a dashboard of links to other account areas. You can use the customUrl() helper:

<div class="list-group">
    <a href="{{ customUrl('reviewmyorders') }}" class="list-group-item">Order History</a>
    <a href="{{ customUrl('address_book') }}" class="list-group-item">Address Book</a>
    <a href="{{ customUrl('wishlist') }}" class="list-group-item">Wishlist</a>
    <a href="{{ customUrl('changepassword') }}" class="list-group-item">Change Password</a>
    <a href="{{ customUrl('changeemail') }}" class="list-group-item">Change Email</a>
</div>

Change Password

URL: /user/changepassword Template: Modules/Application/resources/views/user/changepassword.blade.php

Allows the user to change their password while logged in. Form should POST to route('user.changepassword', [], false).

Form Fields

Field Description
current_password The user's current password
new_password The new desired password
confirm_password Confirmation of the new password

Use session('login_register_msg') to display success/error flash messages.


Change Email

URL: /user/changeemail Template: Modules/Application/resources/views/user/changeemail.blade.php

Allows the user to change their registered email address. Form should POST to route('user.changeemail', [], false).

Form Fields

Field Description
current_password Required for security verification
new_email The new email address

URL: /user/reset Template: Modules/Application/resources/views/user/reset.blade.php

The page a user arrives at after clicking the "Reset Password" link in their email. The form POSTs to route('user.reset', [], false).

Page Variables

Variable Description
$page->misc->token The reset token from the URL (must be included as a hidden field)
$page->misc->email The user's email address (must be included as a hidden field)

Form Fields

Field Description
token Hidden field
email Hidden field
password The new password
password_confirmation Confirmation of the new password