diff --git a/src/Listeners/SendTwoFactorCodeListener.php b/src/Listeners/SendTwoFactorCodeListener.php index ef13299..f63e0d7 100644 --- a/src/Listeners/SendTwoFactorCodeListener.php +++ b/src/Listeners/SendTwoFactorCodeListener.php @@ -23,6 +23,6 @@ public function handle(TwoFactorAuthenticationChallenged | TwoFactorAuthenticati { /** @var mixed $user */ $user = $event->user; - $user->notify(app(SendOTP::class)); + $user->notify(app(config('send_otp_class', SendOTP::class))); } }