You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the admin to be able to verify any user using a switch type manually. The 'email_verified_at' field is a datetime field. Although the entry is being saved with the switch enabled by this code, when the admin opens that user by clicking on the edit button, the following error occurs:
'object of class illuminate\support\carbon could not be converted to int'
I tried creating a separate field by verifying the email, based on which I tried updating 'email_verified_at', but if I update any other field, 'email_verified_at' will only get a date here, otherwise not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want the admin to be able to verify any user using a switch type manually. The 'email_verified_at' field is a datetime field. Although the entry is being saved with the switch enabled by this code, when the admin opens that user by clicking on the edit button, the following error occurs:
'object of class illuminate\support\carbon could not be converted to int'
I tried creating a separate field by verifying the email, based on which I tried updating 'email_verified_at', but if I update any other field, 'email_verified_at' will only get a date here, otherwise not.
This is my code. Thank you for being so helpful.
Beta Was this translation helpful? Give feedback.
All reactions