Add a listener to automatically log notification sends

This commit is contained in:
Bubka
2024-02-26 15:04:47 +01:00
parent 1e42008be7
commit 04078b09aa
4 changed files with 69 additions and 2 deletions

View File

@ -131,8 +131,6 @@ class User extends Authenticatable implements WebAuthnAuthenticatable
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPassword($token));
Log::info(sprintf('Password reset token sent to user id "%s', $this->id));
}
/**