Welcome Guest, Not a member yet? Register   Sign In
model save() function not working?
#3

This has nothing to do with the question... Maybe you want to search a bit about "defaults in mysql for an int field" before polluting the thread...
Anyways, it seems that the problem is solved now. For the posterity: I have mistakenly set the "deleted_at" field as default='now()' in mysql, and together with 
Code:
protected $useSoftDeletes = true;

in the model definition, and strange things happened (like not even the find() did work because the row was actually marked as deleted).
Thanks.
Reply


Messages In This Thread
model save() function not working? - by csebe - 03-21-2022, 03:13 AM
RE: model save() function not working? - by csebe - 03-21-2022, 05:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB