A simple driver for connecting the laravel notification system to Firebase cloud messaging
fcm provides a very clean and fluent interface for connecting the Laravel 5.3 notification system to Firebase cloud messaging. This allows you to easily send notifications to websites, Android apps and iOS apps without effort.
- Use composer to install the package with
composer require dealloc/fcm
- Register the service provider
\Dealloc\FCM\NotificationServiceProvider::class
in your service providers - Create a notification using
php artisan make:notification
- Implement the
\Dealloc\FCM\Contracts\FirebaseNotification
contract in your notification class - In the
via
method of your notification return['fcm']
TODO - provide a simple notification class and code to dispatch it, referencing laravel documentation
This project is licensed under the MIT license, see LICENSE for full license.