ページ · Laravilt
Profile Information
Let users update their name and email address.
->profile() adds the Profile page (Laravilt\Auth\Pages\Profile) to the Settings cluster at /{panel}/settings/profile. /{panel}/profile redirects there.
php
The page validates and saves:
| Field | Rules |
|---|---|
name | required, string, max:255 |
email | required, email, max:255, unique in users (ignoring the current user) |
Customizing
Extend the page and pass your class to profile():
php
For avatar uploads, the laravilt/users package provides a HasAvatar trait. When it's present, LaraviltUser uses it for avatar URLs.