Download the PHP package multicaret/unifonic-notification-channel without Composer
On this page you can find all versions of the php package multicaret/unifonic-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download multicaret/unifonic-notification-channel
More information about multicaret/unifonic-notification-channel
Files in multicaret/unifonic-notification-channel
Package unifonic-notification-channel
Short Description Unifonic Notification Channel for laravel.
License MIT
Informations about the package unifonic-notification-channel
Unifonic notification channel for Laravel 8.x +
The Unifonic channel makes it possible to send out Laravel notifications as SMS
Installation
You can install this package via composer:
The service provider gets loaded automatically.
Setting up the Unifonic service
Check out the configuration of [Laravel Unifonic Library]()
Usage
To use this package, you need to create a notification class, like InvoicePaid
from the example below, in your Laravel application. Make sure to check out Laravel's documentation for this process.
Notification Example
Or pass the content you want directly into the constructor ``
Sending Notifications
There are two methods to send a notification in Laravel:
Method 1
Using notify()
function on any model that uses Notifiable
trait.
to achieve this you have to feed it with the proper column to be used as the recipient number,
as shown in the following example, this function is placed within the User model (You might want to write it in different model in your case, just make sure to use Notifiable
)
``
Method 2
Using route()
static function on Notification class.
``
Contributing
See the CONTRIBUTING guide.
Changelog
Please see CHANGELOG for more information about what has changed recently.