laravel-message-whiz maintained by rosemalejohn
Description
Laravel wrapper for Message Whiz API
Author
Last update
2022/04/01 08:51
(dev-main)
License
Downloads
35
Laravel Message Whiz
Installation
You can install the package via composer:
composer require rosemalejohn/laravel-message-whiz
The package will automatically register itself.
You can publish the configurations files with:
php artisan vendor:publish --provider="Rosemalejohn\MessageWhiz\MessageWhizServiceProvider"
Laravel Notification
To use MessageWhiz on your Laravel notifications, just add \Rosemalejohn\MessageWhiz\NotificationChannel::class on notification's via method
public function via($notifiable)
{
return ['database', 'broadcast', \Rosemalejohn\MessageWhiz\NotificationChannel::class]
}
and then implement the function
public function toSms($notifiable): array
{
return [
'recipient' => $notifiable->phone_number,
'message_body' => 'John Doe sent a like'
];
}
API Documentation
For complete API documentation, head over to MessageWhiz API documentation
License
The MIT License (MIT). Please see License File for more information.