A Laravel Channel for sending push notifications to an Expo React Native App.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them
Laravel 5.5+
PHP 7+
A step by step series of examples that tell you how to get a development env running
Say what the step will be
composer require vientodigital/laravel-expo-push-notification
use VientoDigital\LaravelExpoPushNotifications\Channels\ExpoPushNotificationChannel;
use VientoDigital\LaravelExpoPushNotifications\Messages\ExpoPushNotificationMessage;
public function via($notifiable)
{
return ['mail', 'database', ExpoPushNotificationChannel::class];
}
public function toExpo($notifiable)
{
return (new ExpoPushNotificationMessage)
->title("Push Notification Title")
->body("Lorem ipsum....");
}
End with an example of getting some data out of the system or using it for a little demo
TODO
Add additional notes about how to deploy this on a live system
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Victor Yoalli Dominguez - Initial work - VientoDigital
This project is licensed under the MIT License - see the LICENSE.md file for details