Kpoew said:
thanks for your replay ,the data format already was "Y-m-d H:i:s" when i set "0000-00-00 00:00:00" to model ,the finally sql was "-0001-11-30 00:00:00" so weird !
Don't you just want to 'restore()' your record?
Laravel actually sets deleted_at to NULL to restore a record. So, as ranisalt said, just use the restore method for that.
ranisalt said:
Don't you just want to 'restore()' your record?
that's work ,thanks a lot
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community