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 10, 11, 12, 13
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 ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/notifications Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
guzzlehttp/guzzle Version ^7.2