NULL email_verified_at
i have signed up in admin panel
and i received confirmation email. i clicked it to verify. all good
but, it is not chainging email_verified_at field in users table.
how to fix this?
ty
8 Replies
this is the panel code
after i verify my email by clicking verification link. it is not updating email_verified_at field in table.
Is email_verified_at in your model’s fillable array?
it is not in fillable.
i just did Model::unguard()
thank you. it worked
I would suggest to rollback
Model::unguard()
and provide $fillable
or $guarded
in model. You can encounter some un-wanted data. Ref mass assignment here https://laravel.com/docs/10.x/eloquent#mass-assignmentok. thank you
I thought filament recommends Model::unguard()
For inside filament we can unguarded safely. But if you want your model outside filament then you can encounter some problem
got it thank you