Download the PHP package batyukovstudio/laravel-notification-channels-pushsms-ru without Composer
On this page you can find all versions of the php package batyukovstudio/laravel-notification-channels-pushsms-ru. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download batyukovstudio/laravel-notification-channels-pushsms-ru
More information about batyukovstudio/laravel-notification-channels-pushsms-ru
Files in batyukovstudio/laravel-notification-channels-pushsms-ru
Package laravel-notification-channels-pushsms-ru
Short Description PushSMS notifications channel for Laravel
License MIT
Homepage https://github.com/batyukovstudio/laravel-notification-channels-pushsms-ru
Informations about the package laravel-notification-channels-pushsms-ru
PushSMS notifications channel for Laravel
This package makes it easy to send notifications using pushsms.ru with Laravel.
Contents
- Installation
- Setting up the PushSMS service
- Usage
- Message method
Installation
Install this package with Composer:
The service provider gets loaded automatically. Or you can do this manually:
Setting up the PushSms service
Add your PushSms token to your .env
:
Usage
You need to replace Notification
extend with PushSmsNotification
class.
PushSmsNotification
contains $content
variable for your text message and toPushSms
method. This method will receive a $notifiable
entity and should return an NotificationChannels\PushSMS\ApiActions\PushSmsMessage
instance:
You can use the channel in your via()
method inside the notification:
In your notifiable model, make sure to include a routeNotificationForPushsms()
method, which returns a phone number
or an array of phone numbers.
Message method
content()
: Set a content of the notification message.
All versions of laravel-notification-channels-pushsms-ru with dependencies
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.0.1
illuminate/queue Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/notifications Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0