Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaycalicut17 authored May 15, 2022
1 parent 02cd2da commit 9f02b28
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,23 @@ Password

- [Authentication](https://laravel.com/docs/fortify#authentication)
- [Two Factor Authentication](https://laravel.com/docs/fortify#two-factor-authentication)

Enable two factor authentication feature in config/fortify.php
```code
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
]),
```
Ensure App\Models\User model uses the Laravel\Fortify\TwoFactorAuthenticatable trait.
```code
use Laravel\Fortify\TwoFactorAuthenticatable;
class User extends Authenticatable
{
use TwoFactorAuthenticatable;
```

- [Registration](https://laravel.com/docs/fortify#registration)
- [Password Reset](https://laravel.com/docs/fortify#password-reset)
- [Email Verification](https://laravel.com/docs/fortify#email-verification)
Expand Down

0 comments on commit 9f02b28

Please sign in to comment.