Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Thavo's avatar
Level 2

Guzzlehttp Error While Upgrading Laravel to 8 from 7

I'am following this guide: https://laravel.com/docs/8.x/upgrade#upgrade-8.0

However after I run composer update it throws me an error

our requirements could not be resolved to an installable set of packages.
    - Conclusion: don't install guzzlehttp/guzzle 7.0.1
    - Conclusion: don't install guzzlehttp/guzzle 7.1.x-dev
    - php-http/guzzle6-adapter v2.0.1 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - php-http/guzzle6-adapter 2.x-dev requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - php-http/guzzle6-adapter v2.0.0 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - php-http/guzzle6-adapter v2.0.1 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev, 6.5.x-dev].
    - Installation request for guzzlehttp/guzzle ^7.0.1 -> satisfiable by guzzlehttp/guzzle[7.0.1, 7.0.x-dev, 7.1.x-dev].
    - Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[2.x-dev, v2.0.0, v2.0.1].

My composer:

"require": {
        "php": "^7.3",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "jailtonsc/validador-cpf-laravel": "^5.0",
        "laravel/framework": "^8.0",
        "laravel/legacy-factories": "^1.0",
        "laravel/telescope": "^3.5",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.0",
        "league/flysystem-aws-s3-v3": "^1.0",
        "php-http/guzzle6-adapter": "^2.0",
        "rap2hpoutre/laravel-log-viewer": "^1.6",
        "sentry/sentry-laravel": "1.8.0",
        "spatie/image-optimizer": "^1.2",
        "spatie/laravel-backup": "^6.11",
        "spatie/laravel-permission": "^3.13",
        "yajra/laravel-datatables-oracle": "~9.0"
    },
    "require-dev": {
        "facade/ignition": "^2.3.6",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^5",
        "phpunit/phpunit": "^9"
    },

How to fix that?

0 likes
6 replies
Thavo's avatar
Level 2

Hello Ishra,

Thanks for the attention, I've updated composer however now I'm getting another error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/framework v8.2.0
    - Conclusion: don't install laravel/framework v8.1.0
    - Conclusion: don't install laravel/framework v8.0.4
    - Conclusion: don't install laravel/framework v8.0.3
    - Conclusion: don't install laravel/framework v8.0.2
    - Conclusion: don't install laravel/framework v8.0.1
    - Conclusion: don't install laravel/framework v8.0.0

....
- 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].
    - Installation request for sentry/sentry-laravel 1.8.0 -> satisfiable by sentry/sentry-laravel[1.8.0].

My Composer.json

"require": {
        "php": "^7.3",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^6.5|^7.0.1",
        "jailtonsc/validador-cpf-laravel": "^5.0",
        "laravel/framework": "^8.0",
        "laravel/legacy-factories": "^1.0",
        "laravel/telescope": "^3.5",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.0",
        "league/flysystem-aws-s3-v3": "^1.0",
        "php-http/guzzle6-adapter": "^2.0",
        "rap2hpoutre/laravel-log-viewer": "^1.6",
        "sentry/sentry-laravel": "1.8.0",
        "spatie/image-optimizer": "^1.2",
        "spatie/laravel-backup": "^6.11",
        "spatie/laravel-permission": "^3.13",
        "yajra/laravel-datatables-oracle": "~9.0"
    },
    "require-dev": {
        "facade/ignition": "^2.3.6",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^5",
        "phpunit/phpunit": "^9"
    },
Thavo's avatar
Level 2

Hello Ishra

I tried to install that sentry version however I got that error:


  Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package laravel/framework (locked at v7.28.1, required as ^8.0) is satisfiable by laravel/framework[v7.28.1] but these conflict with your requirements or minimum-stability.
  Problem 2
    - The requested package laravel/ui (locked at v2.4.0, required as ^3.0) is satisfiable by laravel/ui[v2.4.0] but these conflict with your requirements or minimum-stability.
  Problem 3
    - The requested package nunomaduro/collision (locked at v4.2.0, required as ^5) is satisfiable by nunomaduro/collision[v4.2.0] but these conflict with your requirements or minimum-stability.
  Problem 4
    - The requested package phpunit/phpunit (locked at 8.5.8, required as ^9) is satisfiable by phpunit/phpunit[8.5.8] but these conflict with your requirements or minimum-stability.
  Problem 5
    - Conclusion: don't install laravel/framework v8.3.0
    - Conclusion: don't install laravel/framework v8.0.4
    - Conclusion: don't install laravel/framework v8.0.3
    - Conclusion: don't install laravel/framework v8.0.2
    - Installation request for laravel/telescope (locked at v3.5.1, required as ^3.5) -> satisfiable by laravel/telescope[v3.5.1].
    - Conclusion: don't install laravel/framework v8.0.1
    - Conclusion: don't install laravel/framework v8.0.0
    - don't install illuminate/macroable v8.2.0|don't install laravel/framework 8.x-dev
    - don't install laravel/framework 8.x-dev|remove illuminate/macroable v8.2.0
    - don't install laravel/framework 8.x-dev|don't install illuminate/macroable v8.2.0
    - 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].
    - Installation request for illuminate/macroable (locked at v8.2.0) -> satisfiable by illuminate/macroable[v8.2.0], laravel/framework[v8.2.0].
rodrigo.pedra's avatar

Laravel Telescope version 3 is not compatible with Laravel 8.

Update this in your composer.json:

"laravel/telescope": "^4.0",

For any further dependencies errors you can visit the package repository and check if it already supports Laravel 8, and if so, check if you are requesting the correct version.

By the way, the Laravel Telescope version upgrade is noted on the upgrade guide:

https://laravel.com/docs/8.x/upgrade#updating-dependencies

(look at the second list)

Thavo's avatar
Level 2

Thanks for the attention I fixed the issue

Please or to participate in this conversation.