class User extends Authenticatable implements FilamentUser, MustVerifyEmail
{
use HasFactory, HasUuids, Notifiable, SoftDeletes, HasApiTokens;
protected static function booted()
{
static::created(function ($model): void {
// The code below states that the Route [verification.verify] not defined.
// event(new Registered($model));
// $model->sendEmailVerificationNotification();
// This sends the email but the signature is always invalid
$notification = app(VerifyEmail::class);
$notification->url = Filament::getVerifyEmailUrl($model);
$model->notify($notification);
});
}
}
class User extends Authenticatable implements FilamentUser, MustVerifyEmail
{
use HasFactory, HasUuids, Notifiable, SoftDeletes, HasApiTokens;
protected static function booted()
{
static::created(function ($model): void {
// The code below states that the Route [verification.verify] not defined.
// event(new Registered($model));
// $model->sendEmailVerificationNotification();
// This sends the email but the signature is always invalid
$notification = app(VerifyEmail::class);
$notification->url = Filament::getVerifyEmailUrl($model);
$model->notify($notification);
});
}
}