Pruneable Nova Notification model #5859
Unanswered
LiamKarlMitchell
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The notifications table may grow large over time, it would be nice to be able to configure prunable to clean it up.
Have seen other packages that let you configure the model class to use and you can extend their model, but no option exists in Nova for the Notification model.
Similar the notifications may relate to a user, it would be ideal to be able to delete or possibly null/censor information as needed should the user record be deleted.
https://laravel.com/docs/10.x/eloquent#pruning-models
https://freek.dev/2442-strategies-for-making-laravel-packages-customizable
Something like this will work, but would not replace what model the package actually uses.
Or possibly it could be configured inside nova as a callable or more values to say how many years/months/weeks/days, if should prune unread etc.
Beta Was this translation helpful? Give feedback.
All reactions