Skip to content

Commit a0713c8

Browse files
readme updated
1 parent d323cd1 commit a0713c8

File tree

9 files changed

+11507
-4
lines changed

9 files changed

+11507
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ To install the package, use Composer:
2424
composer require joydeep-bhowmik/laravel-push-notification
2525
```
2626

27+
And add this in your `bootstrap/providers`
28+
29+
```php
30+
<?php
31+
return [
32+
JoydeepBhowmik\LaravelPushNotification\Providers\FcmServiceProvider::class
33+
];
34+
35+
```
36+
2737
## Publishing Assets
2838

2939
After installation, publish the package assets using the following command:
@@ -49,6 +59,8 @@ After publishing, configure the FCM settings in `config/fcm.php`. Ensure you set
4959

5060
Make sure to set the `FIREBASE_CREDENTIALS` in your `.env` file.
5161

62+
and replace api keys in `public/firebase-messaging-sw.js`,`resources/js/fcm.js`,`storage/framework/app/firebase-auth.js`.
63+
5264
## Migrations
5365

5466
Run the migrations to create the necessary database tables:

composer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"autoload": {
1818
"psr-4": {
19-
"JoydeepBhowmik\\LaravelPushNotification\\": "src/"
19+
"JoydeepBhowmik\\LaravelPushNotification\\": "src/",
20+
"JoydeepBhowmik\\LaravelPushNotification\\Tests\\": "tests"
2021
}
2122
},
2223
"authors": [
@@ -26,5 +27,15 @@
2627
}
2728
],
2829
"minimum-stability": "stable",
29-
"prefer-stable": true
30+
"prefer-stable": true,
31+
"require-dev": {
32+
"orchestra/testbench": "^9.4",
33+
"pestphp/pest": "^3.1",
34+
"pestphp/pest-plugin-laravel": "^3.0"
35+
},
36+
"config": {
37+
"allow-plugins": {
38+
"pestphp/pest-plugin": true
39+
}
40+
}
3041
}

0 commit comments

Comments
 (0)