laravel-enso/notifications
Notifications
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!
Related Packages
A beautiful, customizable toast notification package for Laravel Blade and Livew...
Zero-config browser push notifications for Filament. Piggybacks on database noti...
A useful wrapper around Laravel Notifications that support its artisan command
Pacote elegante e responsivo para gerenciamento de notificações em Laravel com L...
A Laravel package for integrating with Zoho Cliq, allowing you to send messages,...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 4.5.1 | MIT | ||
| 4.5.0 | MIT | ||
| 4.4.0 | MIT | ||
| 4.3.0 | MIT | ||
| 4.2.0 | MIT | ||
| 4.1.2 | MIT | ||
| 4.1.1 | MIT | ||
| 4.1.0 | MIT | ||
| 4.0.4 | MIT | ||
| 4.0.3 | >=7.4.0 | MIT | |
| 4.0.2 | >=7.4.0 | MIT | |
| 4.0.1 | >=7.4.0 | MIT | |
| 4.0.0 | >=7.4.0 | MIT | |
| 3.2.4 | >=7.4.0 | MIT | |
| 3.2.3 | >=7.4.0 | MIT | |
| 3.2.2 | >=7.4.0 | MIT | |
| 3.2.1 | >=7.4.0 | MIT | |
| 3.2.0 | >=7.4.0 | MIT | |
| 3.1.4 | MIT | ||
| 3.1.3 | >=7.1.0 | MIT | |
| 3.1.2 | >=7.1.0 | MIT | |
| 3.1.1 | >=7.1.0 | MIT | |
| 3.1.0 | >=7.1.0 | MIT | |
| 3.0.6 | >=7.1.0 | MIT | |
| 3.0.5 | >=7.1.0 | MIT | |
| 3.0.4 | >=7.1.0 | MIT | |
| 3.0.3 | >=7.1.0 | MIT | |
| 3.0.2 | >=7.1.0 | MIT | |
| 3.0.1 | >=7.1.0 | MIT | |
| 3.0.0 | >=7.1.0 | MIT |
Showing the latest 30 of 103. See every release on Packagist