javaabu / notifications
Notifications for Laravel: define a message once for mail, database, broadcast, FCM and SMS, with notification pages, a live bell, branded mail and Dhivehi support
Requires
- php: ^8.4
- illuminate/broadcasting: ^12.0 || ^13.0
- illuminate/database: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/mail: ^12.0 || ^13.0
- illuminate/notifications: ^12.0 || ^13.0
- illuminate/routing: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- illuminate/view: ^12.0 || ^13.0
- javaabu/forms: ^2.0@dev
- javaabu/manifest: ^1.0@dev
- javaabu/permissions: ^3.0@dev
- javaabu/sms-notifications: ^1.3
Requires (Dev)
- inertiajs/inertia-laravel: ^2.0
- javaabu/boost-javaabu-guidelines: ^1.0
- javaabu/translatable: ^3.0@dev
- laravel-notification-channels/fcm: ^6.0
- laravel/pint: ^1.24
- laravel/reverb: ^1.12
- orchestra/testbench: ^10.0 || ^11.0
- phpunit/phpunit: ^11.5.3 || ^12.5.8
Suggests
- inertiajs/inertia-laravel: Renders the notification pages with Inertia React when notifications.views is inertia (^2.0)
- javaabu/translatable: Stores database notifications in every active language and checks notifiable locales against them (^3.0)
- laravel-notification-channels/fcm: Sends notifications as Firebase Cloud Messaging push messages through the fcm channel (^6.0)
- laravel/reverb: Pushes new notifications to the bell live; it polls without it (^1.12)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-15 10:52:06 UTC
README
Notifications for Laravel, built on Laravel's own. Define what a notification says once and send it by mail, database, broadcast, FCM push and SMS (javaabu/sms-notifications), through the channels each notifiable can receive and hasn't turned off, in its own language. With a notifications page and a live bell in Blade (javaabu/forms) and Inertia React (@javaabu/forms and Onu), branded mail, Reverb or polling, and Dhivehi built in.
class OrderShippedNotification extends BaseNotification { protected array $channels = ['database', 'mail', 'sms']; public function __construct( public Order $order, ) {} public function message(object $notifiable): NotificationMessage { return NotificationMessage::make(__('Your order has shipped')) ->line(__('Order :number is on its way.', ['number' => $this->order->number])) ->action(__('Track order'), route('orders.show', $this->order)) ->subject($this->order) ->success(); } }
Route::notifications(); // the notifications page, the bell's JSON, mark read, delete
<x-notifications::bell />
<NotificationBell bell={props.notifications} />
Documentation
You'll find the documentation on https://docs.javaabu.com/docs/notifications, and in docs/. AI assistants can start from llms.txt; Laravel Boost picks up the guideline and skill in resources/boost.
Testing
composer test pnpm install && pnpm test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.