Pages · Laravilt
Notifications
Toast messages and a persistent database notification center for Laravilt panels.
The laravilt/notifications package gives you one fluent Notification builder for two kinds of messages:
- Toasts are short-lived messages shown after the next request, such as "Saved successfully".
- Database notifications are stored with Laravel's notification system and shown in the panel's bell-icon notification center.
php
success(),danger(),warning()andinfo()are static constructors that create a new notification. Call them first, then chaintitle()and the rest. WritingNotification::make()->title('...')->success()discards the title.
The panel renders notifications with its Vue 3 or React 19 components, so no frontend code is needed.
React support requires Laravilt v1.1 or later.
In this section
- Notification Types: Toast and Database
- Features: Actions and Configuration
- Custom Notifications: reusable notification classes
Installation
The package is installed with Laravilt. To reinstall or republish its files:
bash