Search by

javaabu / notifications

dash8xjavaabun4ff4h

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

Package info

github.com/Javaabu/notifications

pkg:composer/javaabu/notifications

Statistics

Installs: 0

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 2

dev-main / 1.x-dev 2026-11-10 09:59 UTC

This package is auto-updated.

Last update: 2026-11-15 10:52:06 UTC


README

Tests codecov Latest Version on Packagist License: MIT

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.