PHPackages                             nylo/laravel-fcm-channel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. nylo/laravel-fcm-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

nylo/laravel-fcm-channel
========================

Send Firebase Cloud Messenging (FCM) notifications from Laravel.

v1.6.1(4mo ago)31.7k1[1 issues](https://github.com/nylo-core/laravel-fcm-channel/issues)MITPHPPHP &gt;=8.0

Since Jun 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/nylo-core/laravel-fcm-channel)[ Packagist](https://packagist.org/packages/nylo/laravel-fcm-channel)[ Docs](https://github.com/nylo-core/laravel-fcm-channel)[ GitHub Sponsors](https://github.com/agordn52)[ RSS](/packages/nylo-laravel-fcm-channel/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (19)Used By (0)

Laravel FCM Channel
===================

[](#laravel-fcm-channel)

[![Laravel FCM Channel](laravel_fcm.png)](laravel_fcm.png)

Manage FCM notifications with ease using Laravel FCM Channel.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Changelog](#changelog)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

This package has been built to make sending FCM messages easier.

There is also a Flutter [package](https://pub.dev/packages/laravel_notify_fcm) you can use to save time for mobile development.

**Overview:**

- Add multiple (FCM) devices to a model in Laravel
- API Routes for adding new devices to a model
- Send FCM notifications using the new "`fcm_channel`" in your Laravel Notification
- Flutter mobile package to help speed up your development with notifications

Installation
------------

[](#installation)

First, install the package via composer:

```
composer require nylo/laravel-fcm-channel
```

The package will automatically register itself.

Configuration
-------------

[](#configuration)

Run the `install` command.

```
php artisan laravelfcm:install
```

This will add a (`laravelfcm.php`) config file

ServiceProvider to your app.php: `App\Providers\FcmAppServiceProvider::class`

Then, ask if you want to run the migrations.

Here are the tables it will migrate:

- fcm\_devices

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

```
