Setting a default value for hidden fields
I have model which stores the user_id of the person who created each record. I don't want the user to see this field when interacting with the form - it should all happen behind the scenes.
The issue is that when I use:
I get an SQL error
Anyone know a solution for this?
The issue is that when I use:
I get an SQL error
SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value.Anyone know a solution for this?