B. Godoak
B. Godoak

Reputation: 305

Getting an error when upgrading Laravel from 5.5 to 5.6

I'm trying to upgrade my Laravel 5.5 application to Laravel 5.6. To that end, I've been following the upgrade guide.

composer.json:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.1.3",
        "encore/laravel-admin": "1.5.*",
        "fideloper/proxy": "~4.0",
        "intervention/image": "^2.4",
        "laravel/framework": "5.6.*",
        "laravel/passport": "^5.0",
        "laravel/tinker": "~1.0",
        "nesbot/carbon": "^1.22",
        "sebdesign/laravel-state-machine": "^1.2"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "laravel/homestead": "^5.1",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~7.0",
        "filp/whoops": "~2.0"
    },
}

But when I use composer update, I get the following error:

problem 1
    - Conclusion: don't install laravel/framework v5.6.17
    - Conclusion: don't install laravel/framework v5.6.16
    - Conclusion: don't install laravel/framework v5.6.15
    - Conclusion: don't install laravel/framework v5.6.14
    - Conclusion: don't install laravel/framework v5.6.13
    - Conclusion: don't install laravel/framework v5.6.12
    - Conclusion: don't install laravel/framework v5.6.11
    - Conclusion: don't install laravel/framework v5.6.10
    - Conclusion: don't install laravel/framework v5.6.9
    - Conclusion: don't install laravel/framework v5.6.8
    - Conclusion: don't install laravel/framework v5.6.7
    - Conclusion: don't install laravel/framework v5.6.6
    - Conclusion: don't install laravel/framework v5.6.5
    - Conclusion: don't install laravel/framework v5.6.4
    - Conclusion: don't install laravel/framework v5.6.3
    - Conclusion: don't install laravel/framework v5.6.2
    - Conclusion: don't install laravel/framework v5.6.1
    - Conclusion: don't install symfony/process v4.0.8
    - Installation request for laravel/framework 5.6.* -> satisfiable by laravel/framework[v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.2, v5.6.3, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].

I tried removing the vendor directory and re-running composer update, but it still doesn't work.

How would I fix this?

Upvotes: 0

Views: 939

Answers (2)

rob006
rob006

Reputation: 22174

You need to upgrade your laravel/homestead to 6.x or 7.x line. 5.x does not support Symfony 4, which is required by Laravel 5.6.

"require-dev": {
    "laravel/homestead": "^6.6",
    ...
},

For problems like that you should actually try to read these 30k chars - all you need is there:

  • laravel/homestead v5.1.0 requires symfony/process ~2.3|~3.0 /.../
  • laravel/framework v5.6.0 requires symfony/process ~4.0 /.../

Upvotes: 2

Priyash
Priyash

Reputation: 181

It looks like some dependencies aren't updated or not supported by laravel 5.6.

Follow this video guide to upgrade from laravel 5.5 to 5.6 by Jeffery way

Upvotes: 0

Related Questions