Download the PHP package techinasia/laravel-stream-notification-channel without Composer
On this page you can find all versions of the php package techinasia/laravel-stream-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download techinasia/laravel-stream-notification-channel
More information about techinasia/laravel-stream-notification-channel
Files in techinasia/laravel-stream-notification-channel
Package laravel-stream-notification-channel
Short Description Stream Notifications Channel for Laravel 5.3
License MIT
Homepage https://github.com/techinasia/laravel-stream-notification-channel
Informations about the package laravel-stream-notification-channel
Stream Notification Channel for Laravel
Use Laravel 5.3 notifications to send activities to Stream.
Contents
- Installation
- Setting up Stream
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
Register the service provider in your config/app.php
:
Setting up Stream
This notification channel uses techinasia/laravel-stream to send notifications to Stream.
Publish all the vendor assets:
This will create a file called stream.php
in the config
folder. Create an application via Stream's admin interface and copy the API key and secret to the configuration file.
You can add more applications by adding more key/secret pairs to the configuration file:
Usage
Send notifications via Stream in your notification:
You need to specify the ID and type of the notifiable by defining a routeNotificationForStream
method on the entity:
Available Message methods
application(string $application)
: Sets the application to be used to send the notification.
You can set any attributes of the payload by calling the name of the attribute in camel case with the value as the parameter:
Changelog
Please see CHANGELOG for more information for what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issues tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-stream-notification-channel with dependencies
illuminate/notifications Version ^5.3
illuminate/queue Version ^5.1|^5.2|^5.3
illuminate/support Version ^5.1|^5.2|^5.3
techinasia/laravel-stream Version ^1.0