Download the PHP package 64robots/batch-notifications without Composer
On this page you can find all versions of the php package 64robots/batch-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 64robots/batch-notifications
More information about 64robots/batch-notifications
Files in 64robots/batch-notifications
Package batch-notifications
Short Description A Laravel package that groups repetitive notifications in batches
License MIT
Informations about the package batch-notifications
Batch Notifications
Description
Batch Notifications is a Laravel package that groups repetitive notifications in batches. This package is intended for cases where notifications are dispatched repeatedly for a same Notifiable model. So, instead of sending lots of notifications (ex.: email messages) repeatedly to the Notifiable model, the notifications are grouped in batches that will be sent in periods of time.
Installation
1 - Require the package
composer require 64robots/batch-notifications
2 - Publish
php artisan vendor:publish --provider="R64\BatchNotifications\BatchNotificationsServiceProvider"
3 - Run the migration that was just published
php artisan migrate
Usage
1 - Create you notification as you normally do, but add the "$eventables" parameter to the constructor:
2 - Create the notification event for the intended notification:
3 - Add the command to your Console/Kernel.php file:
4 - "mail.documents-assigned" view example:
All versions of batch-notifications with dependencies
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/notifications Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/console Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0