I’m using the Spatie Laravel Activitylog package, and I want to log soft delete actions performed on my models. However, I’m having trouble getting the logs to correctly capture the deletion events. What is the best way to set this up in Laravel?
I tried configuring the Spatie Laravel Activitylog to log soft delete events by using model observers and adding the Loggable trait to my models. I expected the soft delete actions to be captured in the activity log. However, the log entries are not recording the delete actions as expected.