Answer the question
In order to leave comments, you need to log in
Why doesn't the create() method work?
for some reason, creating a row in a table does not work with the create() method, but if you replace it with insert(), it works. Although in another model of the same project there is no such problem. The variables I pass are not empty, I checked with var_dump
Error:
SQLSTATE[HY000]: General error: 1364 Field 'post' doesn't have a default value (SQL: insert into `attitude` () values ())
Answer the question
In order to leave comments, you need to log in
insert into `attitude` () values ()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question