Soft delete notifications #4147
-
Is there any clever way to soft delete notifications (for now they are permanently deleted)? I added column in database, but I cannot use I thought about binding class in $this->app->bind(Notification::class, DatabaseNotification::class); The other possibility could be hooking somehow into The last option, which I I'd rather avoid is to publish view and then switch above method to mine. Any other ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@studiowizjo Did you find a standard solution for this? |
Beta Was this translation helpful? Give feedback.
-
This is how I solved it, I hope it will be useful for you and other friends .
App\Classes\MyNotifiable.php
App\User.php
|
Beta Was this translation helpful? Give feedback.
This is how I solved it, I hope it will be useful for you and other friends
.
App\Classes\MyDatabaseNotification.php
App\Classes\MyNotifiable.php