Custom soft delete column and value for Eloquent O

2019-07-21 03:36发布

I'm in the process of rewriting a REST service, and I've decided to go with Slim Framework and I'm using Eloquent ORM because it works best for me.

Previously I have done my soft deletes with a column deleted and set it to either 1 or 0 for deleted or not.

With Eloquent it sets a timsestamp to a column deleted_at, is there a way I can set it to my previous soft delete method of just setting deleted to 1?

标签: php orm eloquent
0条回答
登录 后发表回答