Skip to content

Instantly share code, notes, and snippets.

@leonardopinho
Created January 22, 2020 17:13
Show Gist options
  • Save leonardopinho/b53bdddf84d6f155ceea64883eb3d4a6 to your computer and use it in GitHub Desktop.
Save leonardopinho/b53bdddf84d6f155ceea64883eb3d4a6 to your computer and use it in GitHub Desktop.
public function __invoke(User $user){
$token = app('auth.password.broker')->createToken($user);
$user->sendPasswordResetNotification($token);
return {
'status' => 'success',
'message' => 'Email enviado com sucesso'
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment