->emailVerification() doesn't work in Filament 4 Hello,
I wanted to send an email for verification in order to enable access the admin area.
MerchantsPanelProvider.php
public function panel(Panel $panel): Panel
{
return $panel
->id('merchants')
->path('/')
->domain(config('domains.merchant'))
->login()
->registration()
->emailVerification()
->authGuard('merchant')
however the merchant, after registration, is automatically logged into the private area and no emails are sent.
How can I make it work? What's wrong am I doing?
Thanks,
Simon
Almost fixed. I have added in my Merchant model
use Illuminate\Contracts\Auth\MustVerifyEmail;
and changed class into
class Merchant extends Authenticatable implements MustVerifyEmail
I have also implement the following line in the migration
$table->timestamp('email_verified_at')->nullable();
The only problem now it that it looks like that Filament doesn't trigger email function. In Teleport I don't see any log for emails. I'm using a third party commercial SMTP so I'm able to track email created and the app doesn't create any email.
Any idea?
Thanks,
Simon
Please sign in or create an account to participate in this conversation.