Download the PHP package salamwaddah/laravel-smsglobal-notifications-channel without Composer
On this page you can find all versions of the php package salamwaddah/laravel-smsglobal-notifications-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salamwaddah/laravel-smsglobal-notifications-channel
More information about salamwaddah/laravel-smsglobal-notifications-channel
Files in salamwaddah/laravel-smsglobal-notifications-channel
Package laravel-smsglobal-notifications-channel
Short Description SmsGlobal notification channel for Laravel 7, 8, 9, 10, 11
License MIT
Informations about the package laravel-smsglobal-notifications-channel
Laravel SMSGlobal
Use this package to send SMS with SmsGlobal
Installation
Configure
In your services.php
config file add the following configs.
Debug Mode
Debug mode is on by default, which means SMS will not be actually sent, instead only a log record will be added
to /storage/logs/laravel.log
In your services.php
change the value of sms_global.debug
to false
Usage
Notification class
Using Laravel notification class add SmsGlobalChannel::class
to via()
method like so:
On demand notification
You can utilize Laravel on-demand notification facade to send SMS directly to a phone number without having to store a user in your application.
The notifiable argument in toSmsGlobal
of your notification class should expect the same data type you passed to
the Notification
facade.
In this example, we passed the phone number as a string
because we don't have a "user" and so toSmsGlobal
should
expect a string
.
All versions of laravel-smsglobal-notifications-channel with dependencies
illuminate/http Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/notifications Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
guzzlehttp/guzzle Version ^6.5 || ^7.2