Closed connecteev closed 4 years ago
The error says your trying to require version 5 of Laravel Dusk. You'll need to bump Dusk to version 6 and check any other dependencies to make sure they're compatible with Laravel 8.
Check all of your dependencies. Looks like Collision needs to be bumped to version 5 too. There may be others.
@devcircus thanks for the tip, these composer errors have always been unintuitive to me.
This is where I'm currently stuck, there seems to be a circular dependency :( Also I'm not sure if there's a better / faster way to resolve this, but it's quite annoying how long each step takes.
composer require laravel/dusk --dev
composer require nunomaduro/collision --dev
composer require laravel/passport
composer require laraveldaily/laravel-invoices
composer require laravel/ui
I ended up with this:
- Installation request for laravel/framework ^8.0 -> satisfiable by laravel/framework[8.x-dev, v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.2.0, v8.3.0, v8.4.0].
- Installation request for laraveldaily/laravel-invoices (locked at 1.3.11, required as ^1.3) -> satisfiable by laraveldaily/laravel-invoices[1.3.11].
Installation failed, reverting ./composer.json to its original content.
Very frustrating..
Finally got it working, but i wish there was an easier way
Here's the working composer.json
--- a/backend_laravel/composer.json
+++ b/backend_laravel/composer.json
@@ -18,13 +18,13 @@
"jamesdordoy/laravelvuedatatable": "^1.3",
"laravel/cashier": "^12.2.0",
"laravel/envoy": "^2.1",
- "laravel/framework": "^7.0",
- "laravel/horizon": "^4.3",
- "laravel/passport": "^9.0",
- "laravel/socialite": "^4.0",
+ "laravel/framework": "^8.0",
+ "laravel/horizon": "^5.0",
+ "laravel/passport": "^10.0",
+ "laravel/socialite": "^5.0",
"laravel/tinker": "^2.0",
- "laravel/ui": "^2.0",
- "laraveldaily/laravel-invoices": "^1.3",
+ "laravel/ui": "^3.0",
+ "laraveldaily/laravel-invoices": "^2.0",
"league/flysystem-aws-s3-v3": "~1.0",
"league/flysystem-cached-adapter": "~1.0",
"predis/predis": "^1.1",
@@ -41,10 +41,10 @@
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.9.1",
"kylekatarnls/carbonite": "^1.0",
- "laravel/dusk": "^5.0",
+ "laravel/dusk": "^6.0",
"mockery/mockery": "^1.3.1",
- "nunomaduro/collision": "^4.1",
- "orchestra/testbench": "^5.3",
+ "nunomaduro/collision": "^5.0",
+ "orchestra/testbench": "^6.0",
"phpunit/phpunit": "^8.5",
"zoonman/pixabay-php-api": "^1.0"
},
these composer errors have always been unintuitive to me
If you still can reproduce the old composer.json, give it a try with cmposer via composer self-update --2
if it gives you a better experience. You can hop back to the old one via composer self-update --1
.
@mfn thanks for the tip..
Description:
I cant upgrade to Laravel 8 and keep seeing the following errors when I change
"laravel/framework": "^7.0",
to"laravel/framework": "^8.0",
Steps To Reproduce:
My
composer.json
:Output of
composer diagnose
: