Download the PHP package csgt/notification-channel-direkto without Composer
On this page you can find all versions of the php package csgt/notification-channel-direkto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download csgt/notification-channel-direkto
More information about csgt/notification-channel-direkto
Files in csgt/notification-channel-direkto
Package notification-channel-direkto
Short Description Notification channel Direkto.
License MIT
Homepage https://github.com/csgt/laravel-notification-channels-direkto
Informations about the package notification-channel-direkto
Direkto notifications channel for Laravel 5.4 - 8.0
This package makes it easy to send [Direkto notifications] with Laravel Laravel >5.4 branch 5.x Laravel >8 branch 6.x
Contents
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
You must install the service provider:
Setting up your Direkto account
Add your Direkto Account SID, Auth Token, and From Number (optional) to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which phone are you sending/calling to, the channel will look for the celular
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForDirekto
method to your Notifiable model.
Available Message methods
DirektoSmsMessage
from('')
: Accepts a phone to use as the notification sender.content('')
: Accepts a string value for the notification body.
Changelog
Please see CHANGELOG for more information what has changed recently.
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
License
The MIT License (MIT). Please see License File for more information.