1111use Illuminate \Database \Schema \Builder ;
1212use Illuminate \Support \Facades \DB ;
1313use Illuminate \Support \Str ;
14+ use Jrean \UserVerification \Events \VerificationEmailSent ;
1415use Jrean \UserVerification \Exceptions \ModelNotCompliantException ;
1516use Jrean \UserVerification \Exceptions \UserNotFoundException ;
1617use Jrean \UserVerification \Exceptions \UserIsVerifiedException ;
@@ -337,6 +338,8 @@ protected function emailVerificationLink(AuthenticatableContract $user, $subject
337338 $ m ->to ($ user ->email );
338339
339340 $ m ->subject (is_null ($ subject ) ? trans ('laravel-user-verification::user-verification.verification_email_subject ' ) : $ subject );
341+
342+ event (new VerificationEmailSent ($ user ));
340343 });
341344 }
342345
@@ -359,6 +362,8 @@ protected function emailQueueVerificationLink(AuthenticatableContract $user, $su
359362 $ m ->to ($ user ->email );
360363
361364 $ m ->subject (is_null ($ subject ) ? trans ('laravel-user-verification::user-verification.verification_email_subject ' ) : $ subject );
365+
366+ event (new VerificationEmailSent ($ user ));
362367 });
363368 }
364369
@@ -382,6 +387,8 @@ protected function emailQueueOnVerificationLink($queue, AuthenticatableContract
382387 $ m ->to ($ user ->email );
383388
384389 $ m ->subject (is_null ($ subject ) ? trans ('laravel-user-verification::user-verification.verification_email_subject ' ) : $ subject );
390+
391+ event (new VerificationEmailSent ($ user ));
385392 });
386393 }
387394
@@ -405,6 +412,8 @@ protected function emailLaterVerificationLink($seconds, AuthenticatableContract
405412 $ m ->to ($ user ->email );
406413
407414 $ m ->subject (is_null ($ subject ) ? trans ('laravel-user-verification::user-verification.verification_email_subject ' ) : $ subject );
415+
416+ event (new VerificationEmailSent ($ user ));
408417 });
409418 }
410419
@@ -428,6 +437,8 @@ protected function emailLaterOnVerificationLink($queue, $seconds, Authenticatabl
428437 $ m ->to ($ user ->email );
429438
430439 $ m ->subject (is_null ($ subject ) ? trans ('laravel-user-verification::user-verification.verification_email_subject ' ) : $ subject );
440+
441+ event (new VerificationEmailSent ($ user ));
431442 });
432443 }
433444
0 commit comments