Scenario here is that while deleting a record I am not actually deleting the record, just updates the 'deleted' field in the DB to 1. But I need to trigger some actions on deleting the record. I know we could try this with Events, but is there a way to trigger the deleted event like \Event::fire('deleted') without actually executing the delete() method?
use soft delete in model
and what do you mean this? "But I need to trigger some actions on deleting the record" ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community