Personal fields with default field #574
-
i have some question, i have made my personal field, that is 'user_image' with 'default' => 'default.svg' that i save the image in file named 'img' and i follow all instructions needed. i have added $personalFields in file Auth.php, $allowFields in file UserModel, and i did migrations. but when i regitester there is error "Column 'user_image' cannot be null ". what is the solution to fix it ?. thank you so much. heres my code : ->file Auth.php -> file UserModel.php ->file Migrations |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
heres my database : |
Beta Was this translation helpful? Give feedback.
-
ive fixed it, i forget to remove 'user_image' from $personalFields. miss understanding. coding make me confused lol |
Beta Was this translation helpful? Give feedback.
-
Nice to hear that. |
Beta Was this translation helpful? Give feedback.
ive fixed it, i forget to remove 'user_image' from $personalFields. miss understanding. coding make me confused lol