Closed lucianobosco closed 2 years ago
@lucianobosco
Try this:
composer require laravel-notification-channels/fcm
Try this
composer require laravel-notification-channels/fcm:~2.0 -W
Notice the -W
flag
I'm getting this:
composer require laravel-notification-channels/fcm:~2.0 -W
./composer.json has been updated
Running composer update laravel-notification-channels/fcm --with-all-dependencies
Loading composer repositories with paUpdating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel-notification-channels/fcm[2.0.0, ..., 2.0.3] require guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).
- laravel-notification-channels/fcm[2.0.4, ..., 2.1.3] require kreait/laravel-firebase ^1.3 || ^2.1 -> found kreait/laravel-firebase[1.3.0, 1.4.0, 1.5.0, 2.1.0, ..., 2.4.0] but it conflicts with your root composer.json require (^4.0).
- laravel-notification-channels/fcm[2.2.0, ..., 2.2.1] require kreait/laravel-firebase ^1.3 || ^2.1 || ^3.0 -> found kreait/laravel-firebase[dev-main, 1.3.0, 1.4.0, 1.5.0, 2.1.0, ..., 2.4.0, 3.0.0, ..., 3.x-dev (alias of dev-main)] but it conflicts with your root composer.json require (^4.0).
- Root composer.json requires laravel-notification-channels/fcm ~2.0 -> satisfiable by laravel-notification-channels/fcm[2.0.0, ..., 2.2.1].
Tried to install this package today. Laravel 8, PHP 8, fcm 2.4 This is the error message Problem 1
am also getting below problem
Your requirements could not be resolved to an installable set of packages.
Problem 1
I'm facing an error under Laravel Sail (Laravel 8, PHP 8) by running
composer require laravel-notification-channels/fcm:~2.0
Any help will be appreciated.EDIT: I've made the install work by using the option
--with-all-dependencies
(-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Not sure if this is a good practice or I'm doing something wrong here.composer require laravel-notification-channels/fcm:~2.0 --with-all-dependencies