laravel - Kreait fcm 错误 Firebase 项目 [项目名称] 未配置
问题描述
我正在尝试来自https://github.com/kreait/laravel-firebase的库 fcm ,这是我的配置文件。
'credentials' => [
'file' => public_path('serviceaccount.json'), // config service account from firebase
/*
* If you want to prevent the auto discovery of credentials, set the
* following parameter to false. If you disable it, you must
* provide a credentials file.
*/
'auto_discovery' => true,
],
这是我对邮递员的结果测试。
Kreait\Firebase\Exception\InvalidArgumentException:Firebase 项目 [KANTIN-UNISBA] 未配置。在第 41 行的文件 /path/to/application/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php 中**
解决方案
推荐阅读
- laravel - 十月 CMS:在主题之间共享部分内容
- c# - xamarin 表单,自动完成位置地址
- php - url上的Laravel检查文件
- java - 在线程中运行消息循环
- c# - Microsoft.Extensions.Hosting EnvironmentName 覆盖默认生产值
- cassandra - Cassandra 轻量级事务失败
- batch-file - 如何在批处理脚本中使用 sqlcmd 查询结果
- crafter-cms - 创建站点时身份验证失败问题
- windows-10 - 检测 Skype 来电
- javascript - Node.js 将数据写入文件会导致额外的写入字符