Custom Database Notification Model
I wanted to add some actions to each database Notification and as is don’t see an option where that is possible. Is ‘extending’ from BaseNotification the right way to go ?
2 Replies
Do you mean this?
@Rad not sure if I'm not too late, but we experimented and came up with this solution. Create your own class extending BaseNotification, then bind it in the provider, and then use it where needed.
app/Filament/Notification.php:
app/Providers/AppServiceProvider.php:
Then, in the Create pages or wherever you need, call your Notification class:
app/Filament/Resources/PostResource/Pages/CreatePost.php: