Download the PHP package notify-eu/notify without Composer
On this page you can find all versions of the php package notify-eu/notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notify-eu/notify
More information about notify-eu/notify
Files in notify-eu/notify
Package notify
Short Description Notify Notifications driver for Laravel
License MIT
Homepage https://github.com/notify-eu
Informations about the package notify
Notify notifications channel for Laravel 5.7+ & 6.x
This package makes it easy to send notifications using Notify with Laravel 5.7+ & 6.x
Contents
- Installation
- Setting up your Notify account
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up your Notify account
Add your ClientId, secret and transport to your config/services.php
:
NOTIFY_URL
is not mandatory. Can be used when you want to overwrite the endpoint Notify is calling. (f.e. different url for Staging/production)
Add your Notify credentials to your .env
:
Usage
Now you can use the channel in your via()
method inside the notification:
Notifiable
Make sure the notifiable model has the following method:
All available methods
notificationType('')
: Accepts a string value.transport('')
: Accepts a string value. if not set, it will fallback to NOTIFY_TRANSPORT in .env filelanguage('')
: Accepts a string value.params($array)
: Accepts an array of key/value parametersCc($array)
: Accepts an array of arrays of 'name'/'recipient' keysBcc($array)
: Accepts an array of arrays of 'name'/'recipient' keys
Events
Following events are triggered by Notification. By default:
- Illuminate\Notifications\Events\NotificationSending
- Illuminate\Notifications\Events\NotificationSent
and this channel triggers one when a call to Notify fails for any reason:
- Illuminate\Notifications\Events\NotificationFailed
To listen to those events create event listeners in app/Listeners
:
Then register listeners in app/Providers/EventServiceProvider.php
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- notify
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of notify with dependencies
guzzlehttp/guzzle Version ^6.3
illuminate/notifications Version ~5.5 || ~6.0
illuminate/support Version ~5.5 || ~6.0
illuminate/events Version ~5.5 || ~6.0