File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11# Laravel FCM
22
3- A Simple package that help you send a firebase notification with your laravel applications
3+ A simple package that help you send a Firebase notification with your Laravel applications
44
55### Installation
66
@@ -12,32 +12,33 @@ $ composer require kawankoding/laravel-fcm
1212
1313 Next, You must register the service provider :
1414
15- ``` php
15+ ``` php
1616// config/app.php
1717
1818'Providers' => [
19- ...
19+ // ...
2020 Kawankoding\Fcm\FcmServiceProvider::class,
2121]
2222 ```
2323
24- If you want to make use of the facade you must install it as well:
24+ If you want to make use of the facade you must install it as well :
2525
2626``` php
2727// config/app.php
28+
2829'aliases' => [
29- ...
30+ // ...
3031 'Fcm' => Kawankoding\Fcm\FcmFacade::class,
3132];
3233```
3334
34- Next, You must publish the config file to define your fcm server key :
35+ Next, You must publish the config file to define your FCM server key :
3536
3637``` bash
3738php artisan vendor:publish --provider=" Kawankoding\Fcm\FcmServiceProvider"
3839```
3940
40- This is the contents of the published file:
41+ This is the contents of the published file :
4142
4243``` php
4344return [
7677 ->send();
7778```
7879
79- If You want to send a FCM with just notification parameter,this is an example of usage sending a FCM with only notification parameter :
80+ If You want to send a FCM with just notification parameter, this is an example of usage sending a FCM with only notification parameter :
8081``` php
8182fcm()
8283 ->to($recipients) // $recipients must an array
You can’t perform that action at this time.
0 commit comments