can you explain how to send a email invitation when you add a new doctor ?
How we can send an email when you create another doctor , and also how to use the verification email for every new admin
1 Reply
You can take advantage of Events and model lifecycle hooks. Start by creating a new event:
Then, update the DoctorCreated class
Now, create an event listener class and a mailable class
This is how your SendWelcomeEmail listener class should look like
This should be the content of the WelcomeEmail mailable class
Create the
resources\views\emails\welcome.blade.php
file and edit the content as you see fit
And finally, update the User class with this method
Let me know if this works for you
It's been a few days now. I'll mark this as solved for the time being.