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 handleRecordCreation in CreateUser file and used the $user->resetPassword() method (for testing only) in Panel\Concerns\HasAuth but no luck. Updated, I've used custom email using Laravel Notification.
Solution:
Updated, I've used custom email using Laravel Notification
Jump to solution
3 Replies
Solution
lazydog
lazydog7mo ago
Updated, I've used custom email using Laravel Notification
ingmontoya
ingmontoya6mo ago
how did you do it?
lazydog
lazydog6mo ago
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)