TwoFactorAuthenticatable
trait TwoFactorAuthenticatable
Methods
Determine if two-factor authentication has been enabled.
Get the user's two factor authentication recovery codes.
Consume the given recovery code if it is still valid.
Replace the given recovery code with a new one in the user's stored codes.
Dispatch the recovery code replaced event if listeners are registered.
Get the QR code SVG of the user's two factor authentication QR code URL.
Get the two factor authentication QR code URL.
Details
at line 27
bool
hasEnabledTwoFactorAuthentication()
Determine if two-factor authentication has been enabled.
at line 42
array
recoveryCodes()
Get the user's two factor authentication recovery codes.
at line 60
bool
consumeRecoveryCode(string $code)
Consume the given recovery code if it is still valid.
at line 116
void
replaceRecoveryCode(string $code)
Replace the given recovery code with a new one in the user's stored codes.
at line 124
protected void
dispatchRecoveryCodeReplacedEvent(string $code)
Dispatch the recovery code replaced event if listeners are registered.
at line 136
string
twoFactorQrCodeSvg()
Get the QR code SVG of the user's two factor authentication QR code URL.
at line 146
string
twoFactorQrCodeUrl()
Get the two factor authentication QR code URL.