class EnableTwoFactorAuthentication

Traits

Methods

void
dispatchIfListening(string $eventClass, Closure $event)

Dispatch the given event if listeners are registered.

__construct(TwoFactorAuthenticationProvider $provider)

No description

void
__invoke(Authenticatable&Model $user, bool $force = false)

Enable two factor authentication for the user.

Details

in DispatchesEvents at line 16
protected void dispatchIfListening(string $eventClass, Closure $event)

Dispatch the given event if listeners are registered.

Parameters

string $eventClass
Closure $event

Return Value

void

at line 21
__construct(TwoFactorAuthenticationProvider $provider)

No description

Parameters

TwoFactorAuthenticationProvider $provider

at line 29
void __invoke(Authenticatable&Model $user, bool $force = false)

Enable two factor authentication for the user.

Parameters

Authenticatable&Model $user
bool $force

Return Value

void