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.
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,
];
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
TODO
TODO
Please see CHANGELOG for more information what has changed recently.
composer test
If you discover any security related issues, please email hello@jd-powered.net instead of using the issue tracker.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.