Create User in Filament and sent verification email
I don't understand what I should be doing to automatically sent a verification email, when I create a User in Filament.
I have a simple
UserResource
that let's me create users.
I have implemented the MustVerifyEmail
interface on my User model and also setup Mail capabilities.
My Laravel project is using JetStream.
Also, when trying to reset the password for the current user, through Filament, it says doesn't sent an email to do so.
Only if I reset my password from the Laravel Jetstream page, it sent an email. Am I forgetting something?
This is in my AdminPanelProvider:
5 Replies
you have to do it manually in after Create hook
You mean in the User Model?
OK, clear. But is there any existing function I can call to handle this? I guess I should only have to sent an email?
no there isn't because as you said it's just an email, also if you dig the code of the register controller in jetstream you literally can copy and paste π