Authenticator 2FA App in Laravel

<?php

namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
{
    use HasApiTokens, HasFactory, Notifiable, TwoFactorAuthenticatable;

    /* The rest of the User Model code .. */
}

La sécurité de l’application s’améliore avec la 2FA. Configurer des notifications de mot de passe à usage unique (OTP) par e-mail ou SMS devient très important. Ajouter facilement votre apllication à Google Authenticator ou Microsoft Authenticator.

app_auth_phone

Image 1 parmi 3

2fa Authentification sur mobile