Laravel FCM (Firebase Cloud Messaging) Notification Channel
This package makes it easy to send notifications using Firebase Cloud Messaging (FCM) with Laravel 5.3 or above.
This package is based on ZendService\Google\Gcm, so please read that documentation for more information.
Contents
Installation
Install this package with Composer:
composer require jdpowered/laravel-fcm-channel
If you're running Laravel 5.3 you must install this service provider.
// config/app.php
'providers' => [
...
JdPowered\FcmNotificationChannel\FcmServiceProvider::class,
];
Setting up the FCM service
You need to register for a server key for Firebase Cloud Messaging for your App in the Firebase Console
Add the server key to your broadcasting configuration.
// config/broadcasting.php
'connections' => [
...
'fcm' => [
'key' => env('FCM_KEY'),
],
...
]
// .env
FCM_KEY=c169cc12-cb26-4cb9-983f-f41cebadf402
Usage
TODO
Available Message methods
TODO
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
composer test
Security
If you discover any security related issues, please email hello@jd-powered.net instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.