Custom soft delete column and value for Eloquent ORM

我与影子孤独终老i 提交于 2019-12-24 03:52:45

问题


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?

来源:https://stackoverflow.com/questions/27910953/custom-soft-delete-column-and-value-for-eloquent-orm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!