Support the ongoing development of Laravel.io →
posted 7 years ago
Eloquent

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?

Last updated 3 years ago.
0

use soft delete in model

laravel soft delete

and what do you mean this? "But I need to trigger some actions on deleting the record" ?

Last updated 7 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.