Страницы · Laravilt
User Model Setup
Configure your User model for Laravilt authentication
Add the LaraviltUser trait to your User model to enable all authentication features.
Basic Setup
php
Trait Features
The LaraviltUser trait adds:
Properties
locale- User's preferred languagetimezone- User's timezonetwo_factor_enabled- 2FA statustwo_factor_method- Active 2FA methodtwo_factor_secret- Encrypted TOTP secrettwo_factor_recovery_codes- Hashed backup codestwo_factor_confirmed_at- 2FA confirmation timestamp
Relationships
php
Methods
php
Related
- Configuration - Auth configuration
- Migrations - Database migrations