Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Jun 8, 2024
1 parent 82cc8f6 commit 0b9ef96
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [agordn52]
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.0.3] - 2024-06-08

* Update composer.json file
* Add funding.yml file

## [1.0.2] - 2024-06-08

* Update readme file
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, ask if you want to run the migrations.
Here are the tables it will migrate:
* fcm_devices

Add your Google Service Account to `firebase_service_account_json`.
Add your Google Service Account to `config/firebase_service_account_json`.

```php
<?php
Expand All @@ -76,7 +76,7 @@ You can download your Google Service Account in your Firebase Project Settings >
Then, paste the JSON into the `firebase_service_account_json` file like in the above example.
> **Note:** It's best to keep the key values in a `.env` file. Don't commit the JSON file to your repository.
You can fully configure this package in the `config/laravelfcm.php` file (this file should be added after you run `php artisan laravelfcm:install`).
You can configure this package in `config/laravelfcm.php`.

## Configuring your Model

Expand All @@ -101,9 +101,7 @@ class User extends Authenticatable

This package uses [`laravel/sanctum`](https://laravel.com/docs/sanctum) as the default middleware for your model.

However, if you want authenticate using a different middleware, you can update the `config/laravelfcm.php` file key "middleware".

The middleware is used when authenticating the user through the API endpoints this package creates.
However, if you want authenticate using a different middleware, you can update the `middleware` key in your **config/laravelfcm.php** file.

## API Endpoints

Expand All @@ -113,7 +111,7 @@ Postman collection [example](laravel_fcm_channel.postman_collection.json)

---

Store a device:
<ins>Store a device</ins>

The default endpoint: `/api/fcm/device`

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "nylo/laravel-fcm-channel",
"description": "Send notifications from Firebase cloud messenger from Laravel.",
"description": "Send Firebase Cloud Messenging (FCM) notifications from Laravel.",
"type": "library",
"keywords": [
"Laravel FCM channel",
"Laravel FCM",
"Firebase Cloud Messenger Laravel",
"Firebase Cloud Messenging Laravel",
"FCM notifications",
"Laravel notify",
"Firebase",
Expand Down

0 comments on commit 0b9ef96

Please sign in to comment.