Skip to content

Laravel Channel for sending push notifications to an Expo React Native App

Notifications You must be signed in to change notification settings

VientoDigital/Laravel-Expo-Push-Notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Expo Push Notifications

A Laravel Channel for sending push notifications to an Expo React Native App.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

Laravel 5.5+
PHP 7+

Installing

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

Example

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

Running the tests

TODO

Deployment

Add additional notes about how to deploy this on a live system

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Laravel Channel for sending push notifications to an Expo React Native App

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages