Download the PHP package owowagency/laravel-nofitication-bundler without Composer
On this page you can find all versions of the php package owowagency/laravel-nofitication-bundler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download owowagency/laravel-nofitication-bundler
More information about owowagency/laravel-nofitication-bundler
Files in owowagency/laravel-nofitication-bundler
Package laravel-nofitication-bundler
Short Description Bundle multiple notifications into one
License MIT
Homepage https://github.com/owowagency/laravel-notification-bundler
Informations about the package laravel-nofitication-bundler
A package for Laravel that bundles notifications sent within a specified delay for a single user.
๐ Table of contents
- Installation
- Usage
- Limitations
- Changing the delay
- Specify the channels to bundle Contributing
- License
- OWOW
โ๏ธ Installation
Installing this package can be done by using Composer
:
๐ ๏ธ Usage
Here is a simple example of how to use this package.
Limitations
Because of limitations in Laravel, the database channel must implicitly use the toArray
, or toDatabase
method.
To get the notifications in those functions, you can use the getBundle()
method.
When you want to add custom middleware, it is important to always apply the bundle middleware first. If you don't do this, your notification could be bundled with a another notification later on, which can cause unexpected results.
Changing the delay
By default, the delay is set to 30 seconds.
You can change this delay by publishing the config file and changing the bundle_notifications_after_seconds
value.
To change it per notification, the bundleDelay()
method can be used.
To take even more control, you can use the withDelay()
method to specify a delay per channel.
Specify the channels to bundle
By default, all channels are bundled. You can change this by using the bundleChannels()
method.
๐ซถ Contributing
Please see CONTRIBUTING for details.
๐ License
The MIT License (MIT). Please see License File for more information.
This package has been brought to you with much love by the wizkids of OWOW. Do you like this package? Weโre still looking for new talent and Wizkids. So do you want to contribute to open source, while getting paid? Apply now.
All versions of laravel-nofitication-bundler with dependencies
illuminate/bus Version ^9.18|^10.0
illuminate/conditionable Version ^9.18|^10.0
illuminate/console Version ^9.18|^10.0
illuminate/database Version ^9.18|^10.0
illuminate/pipeline Version ^9.18|^10.0
illuminate/support Version ^9.18|^10.0
symfony/console Version ^6.0