PHPackages                             tomatophp/filament-fcm-driver - 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. [Templating &amp; Views](/categories/templating)
4. /
5. tomatophp/filament-fcm-driver

ActiveLibrary[Templating &amp; Views](/categories/templating)

tomatophp/filament-fcm-driver
=============================

Firebase Cloud Messaging driver for Filament Alerts Sender

v4.0.0(9mo ago)21941[1 issues](https://github.com/tomatophp/filament-fcm-driver/issues)[5 PRs](https://github.com/tomatophp/filament-fcm-driver/pulls)MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Nov 25Pushed 1w ago1 watchersCompare

[ Source](https://github.com/tomatophp/filament-fcm-driver)[ Packagist](https://packagist.org/packages/tomatophp/filament-fcm-driver)[ GitHub Sponsors](https://github.com/fadymondy)[ RSS](/packages/tomatophp-filament-fcm-driver/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (19)Versions (9)Used By (0)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/fadymondy-tomato-fcm-driver.jpg)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/fadymondy-tomato-fcm-driver.jpg)

Filament Firebase Cloud Messages Driver
=======================================

[](#filament-firebase-cloud-messages-driver)

[![Dependabot Updates](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/dependabot/dependabot-updates)[![PHP Code Styling](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/fix-php-code-styling.yml)[![Tests](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/tests.yml/badge.svg)](https://github.com/tomatophp/filament-fcm-driver/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/46c0b66ff12d60ab3f84bbeb531c9d2c0731096014cbf4c53fc9d679f08a4831/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2d6472697665722f76657273696f6e2e737667)](https://packagist.org/packages/tomatophp/filament-fcm-driver)[![License](https://camo.githubusercontent.com/97e60cf9f71200348601faa3699fbed1bc24d6ca570aecb28836eb4fe9250c04/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2d6472697665722f6c6963656e73652e737667)](https://packagist.org/packages/tomatophp/filament-fcm-driver)[![Downloads](https://camo.githubusercontent.com/f4b8e90a12ae5ed89faa5047dde75e58749afc2476279a985dfb03e69678cfb3/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2d6472697665722f642f746f74616c2e737667)](https://packagist.org/packages/tomatophp/filament-fcm-driver)

Firebase Cloud Messaging driver for [Filament Alerts Sender](https://www.github.com/tomatophp/filament-alerts)

Screenshot
----------

[](#screenshot)

[![Preview](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/preview.png)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/preview.png)[![Setting Hub](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-hub.png)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-hub.png)[![Settings Part 1](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-p2.png)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-p2.png)[![Settings Part 2](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-p2.png)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/settings-p2.png)[![Drivers](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/drivers.png)](https://raw.githubusercontent.com/tomatophp/filament-fcm-driver/master/arts/drivers.png)

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

[](#installation)

```
composer require tomatophp/filament-fcm-driver
```

after install your package please run this command

```
php artisan filament-fcm-driver:install
```

finally register the plugin on `/app/Providers/Filament/AdminPanelProvider.php`

```
->plugin(\TomatoPHP\FilamentFcmDriver\FilamentFcmDriverPlugin::make())
```

now you need to access Setting Hub page then go to Firebase options and then fill your data and save it. then please run this command to generate service worker file

```
php artisan filament-fcm:install
```

now on your User Model add this trait `InteractsWithFcm`

```
