Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0
Last updated 2 years ago.
0

Kpoew said:

try this http://laravel.com/docs/eloquent#timestamps

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 !

Last updated 2 years ago.
0

Don't you just want to 'restore()' your record?

Last updated 2 years ago.
0

Laravel actually sets deleted_at to NULL to restore a record. So, as ranisalt said, just use the restore method for that.

Last updated 2 years ago.
0

ranisalt said:

Don't you just want to 'restore()' your record?

that's work ,thanks a lot

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

trigged trigged Joined 18 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.