Download the PHP package yassir3wad/nova-realtime-notification without Composer
On this page you can find all versions of the php package yassir3wad/nova-realtime-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yassir3wad/nova-realtime-notification
More information about yassir3wad/nova-realtime-notification
Files in yassir3wad/nova-realtime-notification
Package nova-realtime-notification
Short Description This package adds real-time notification broadcasting capabilities to Laravel Nova Notifications.
License MIT
Informations about the package nova-realtime-notification
Laravel Nova Real-time Notification Broadcasting
This package adds real-time notification broadcasting capabilities to Laravel Nova Notifications, seamlessly integrating with Laravel Nova.
Features
- Real-time notifications broadcasting using Laravel Echo.
- Seamless integration with Laravel Nova.
- Configurable broadcast channels and events.
- Option to play sound on receiving notifications.
Installation
Requirements
- Laravel Nova 4.x or higher
Steps
-
Install the package via Composer:
-
Publish the package configuration:
- Configure your broadcasting settings in
config/broadcasting.php
. Ensure you have the necessary drivers (e.g., Pusher, Redis, etc.) configured.
Configuration
The package configuration can be found in config/nova-realtime-notification.php
. You can customize the following settings:
enabled
: Enable/disable real-time notifications.broadcast_driver
: The broadcast driver to be used (e.g.,pusher
,reverb
).broadcast_channel
: The private broadcast channel for notifications. Supported values areApp.Models.User
,App.Models.Provider
, andApp.Models.Customer
.enable_sound
: Enable/disable sound for notifications.sound_path
: The path to the sound file in your public directory.
Example configuration (config/nova-realtime-notification.php
):
Usage
Broadcasting Notifications
-
Create a new notification:
-
Implement the
via
,toNova
, andtoBroadcast
methods in your notification class where you haveNovaChannel
, and addbroadcast
to thevia
method: - Trigger the notification from your application logic:
Contributing
Thank you for considering contributing to the Laravel Nova Real-time Notification Broadcasting package! Please read the contribution guidelines for details.
License
This package is open-sourced software licensed under the MIT license.
Screenshots