Send Email
Hi, I have a custom CRUD for user. May I know the method to be called once the user is created when sending an email for creds?
Currently, I am using the
Updated, I've used custom email using Laravel Notification.
handleRecordCreation
in CreateUser
file and used the $user->resetPassword()
method (for testing only) in Panel\Concerns\HasAuth
but no luck.3 Replies
Solution
Updated, I've used custom email using Laravel Notification
how did you do it?
In resource page, create file, you can override the
handleRecordCreation
returned value is a model, ex User, use that object to notify a user.
$user = parent::handleRecordCreation($data);
// $notification object for Reset Password
$user->notify($notification)