I created a custom date column in my table, called finished_at
. I want to replicate the functionality of soft deleting so that:
- Rows that have a
NULL
value for thefinished_at
column are not retrieved by default. - If I want to retrieve rows with a
NULL
value, I addwithFinished()
to the query (like how soft delete haswithTrashed()
).
How can I do this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sRoIIA
via IFTTT
Aucun commentaire:
Enregistrer un commentaire