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
NULLvalue for thefinished_atcolumn are not retrieved by default. - If I want to retrieve rows with a
NULLvalue, I addwithFinished()to the query (like how soft delete haswithTrashed()).
How can I do this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire