Skip to content

rosemalejohn/laravel-message-whiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Laravel wrapper for Message Whiz API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages