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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bc40093
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we change the User model eloquent to json/array. i think we should not use json_decode anymore.
Because i ended up getting error:
and then when i didn't use casts to the custom_fields it working
protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', - 'custom_fields' => 'array' ]; }
but if we didn't use the casts it will error when inputing
Array to string conversion