laravel-enso / notifications
Realtime notifications for Laravel Enso
Requires
- laravel-enso/core: ^12.0
- laravel-enso/migrator: ^2.1
- pusher/pusher-php-server: ^7.0
- dev-master
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.26
- 2.1.25
- 2.1.24
- 2.1.23
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-upgrade/laravel13-core12
- dev-feature/ensoV8
- dev-feature/purgeDeprecatedNotifications
- dev-upgrade/enso6-dr
- dev-upgrade/enso6
- dev-bugfix/fixes-method-name
- dev-upgrade/laravel8
- dev-fixes/stylci
This package is auto-updated.
Last update: 2026-04-21 15:26:55 UTC
README
Description
Notifications provides Enso API endpoints and broadcast channels for user notifications.
The package exposes listing, counting, read, read-all, delete, and delete-all endpoints on top of Laravel's database notifications, and registers a per-user broadcast channel based on the configured auth model.
It is intended to back the Enso notification dropdown and related realtime UI flows.
Installation
Install the package:
composer require laravel-enso/notifications
Run the package migrations:
php artisan migrate
Features
- Notification list and unread-count endpoints.
- Mark-one and mark-all-as-read endpoints.
- Delete-one and delete-all endpoints.
- Broadcast channel registration for user-specific notification streams.
Usage
Main route group:
core.notifications.*
The broadcast channel is derived from the configured auth model namespace and ends with .{id}.
API
HTTP routes
GET api/core/notificationsDELETE api/core/notifications/destroyAllDELETE api/core/notifications/{notification}GET api/core/notifications/countPATCH api/core/notifications/read/{notification}POST api/core/notifications/readAll
Broadcast
- per-user notification channel for the configured auth provider model
Depends On
Required packages:
laravel-enso/core↗laravel-enso/migrator↗pusher/pusher-php-server
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!