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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire