【文件属性】:
文件名称:laravel-firebase-notifications:通过Firebase与APIDatabase集成发送推送通知
文件大小:15KB
文件格式:ZIP
更新时间:2021-03-19 13:43:54
PHP
通过具有API /数据库集成功能的Firebase发送推送通知
安装
您可以通过composer安装该软件包:
composer require orlyapps/laravel-firebase-notifications
php artisan migrate
为您的服务帐户生成私钥文件:
在Firebase控制台中,打开设置>服务帐户(Dienstkonten)。
单击生成新私钥,然后单击生成密钥进行确认。
用密钥安全地保存JSON文件。
// User.php
class User extends Authenticatable
{
use Notifiable , HasPushTokens ;
}
// services.php
'fcm' => [
'json_file_path' => storage_path ( 'xxxxx-annxd-xxxx.j
【文件预览】:
laravel-firebase-notifications-master
----src()
--------Channels()
--------LaravelFirebaseNotificationsServiceProvider.php(2KB)
--------LaravelFirebaseNotifications.php(365B)
--------Http()
--------LaravelFirebaseNotificationsFacade.php(440B)
--------Policies()
--------Notifications()
--------Traits()
--------Models()
----LICENSE.md(1KB)
----.styleci.yml(66B)
----CONTRIBUTING.md(3KB)
----composer.json(1KB)
----CHANGELOG.md(56B)
----README.md(3KB)
----config()
--------config.php(86B)
----database()
--------migrations()