Styling notifications
Notifications have dedicated CSS classes you can hook into to apply your own styling:filament-notificationsfilament-notifications-notificationfilament-notifications-iconfilament-notifications-titlefilament-notifications-close-buttonfilament-notifications-datefilament-notifications-bodyfilament-notifications-actions
Custom notification view
If your desired customization canāt be achieved using the CSS classes above, you can create a custom view to render the notification. To configure the notification view, call the staticconfigureUsing() method inside a service providerās boot() method and specify the view to use:
resources/views/notifications/notification.blade.php. The view should use the packageās base notification component for the notification functionality and pass the available $notification variable through the notification attribute. This is the bare minimum required to create your own notification view:
Custom notification object
Maybe your notifications require additional functionality thatās not defined in the packageāsNotification class. Then you can create your own Notification class, which extends the packageās Notification class. For example, your notification design might need a size property.
Your custom Notification class in app/Notifications/Notification.php might contain:
Notification class into the container inside a service providerās boot() method:
Notification class in the same way as you would with the default Notification object.