首页 > 解决方案 > 在 laravel 8 上使用 brozat/laravel-FCM 的问题

问题描述

我试图在 laravel 8 上安装 brozat/laravel-FCM

我在cmd上收到此错误:

C:\xampp\htdocs\notifications>composer require brozot/laravel-fcm
Using version ^1.3 for brozot/laravel-fcm
./composer.json has been updated
Running composer update brozot/laravel-fcm
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - brozot/laravel-fcm[1.3.0, ..., 1.3.1] require illuminate/support 5.*|^6 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev] but these were not loaded
, likely because it conflicts with another require.
    - Root composer.json requires brozot/laravel-fcm ^1.3 -> satisfiable by brozot/laravel-fcm[1.3.0, 1.3.1].


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

有什么建议么。

标签: laravellaravel-5laravel-4

解决方案


试试这个包https://github.com/code-lts/Laravel-FCM它是从brozat/laravel-FCM分叉的,它支持Laravel 8


推荐阅读