Hello, thanks for reading and your applause,

The first one can you show me the code please.

The second the first param search the email into table if don’t exist created it.

$passwordReset = PasswordReset::updateOrCreate(
['email' => $user->email],
[
'email' => $user->email,
'token' => str_random(60)
]
);

The third, You can move the line to below.

$user->notify(new PasswordResetSuccess($passwordReset));$passwordReset->delete();

Greetings.

💾 Full Stack Web Developer 🛵 Founder at #Tráeme 💻 Freelancer

💾 Full Stack Web Developer 🛵 Founder at #Tráeme 💻 Freelancer