Filament notifications & Spatie LogsActivity

Hi I'm currently using Spatie's LogsActivity and I'm wondering if it's possible to integrate it with Filament notifications. Specifically, I'd like to log the creation and deletion events of these notifications
No description
3 Replies
toeknee
toeknee4mo ago
sure you can extend the notification model and add the trait etc. Or you can write an observer
EnricoMaxwell
EnricoMaxwellOP4mo ago
I tried both but nothing was executed, not even the dd I put in the observer
toeknee
toeknee4mo ago
Notifications are usually on the queue driver is using the DB so did you restart the queue worker when you made the changes as it caches the files, so it's highly optimised.

Did you find this page helpful?