Laravel Userstamps provides an Eloquent trait which automatically maintains `created_by` and `updated_by` columns on your model, populated by the currently authenticated user in your application.
I have a listener on the model updated event to send a mail. But I'm facing right now that the delete method first updated my record (to store the deleted_by field) and then proceed with the actual delete.
I have this little issue.
I have a listener on the model
updated
event to send a mail. But I'm facing right now that the delete method first updated my record (to store thedeleted_by
field) and then proceed with the actual delete.Check this logs for example
I've look at the code and I have a solution that has not issues with this #7 or rather the prevention of future events from being fired AFAIK