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

RiekMedia's avatar

Laravel Update 10 to 11

Hello, I'm stuck at the moment.

I updated from Laravel 9 to 10 without any problems. Now I wanted to update from 10 to 11 and now I get the following error.

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

  Problem 1
    - Conclusion: don't install laravel/framework v11.0.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.3 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.4 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.5 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.6 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.7 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.8 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.1.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.1.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.2.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.3.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.3.1 (conflict analysis result)
    - yajra/laravel-datatables-oracle[v10.3.0, ..., v10.11.4] require illuminate/view ^9|^10 -> satisfiable by illuminate/view[v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.7].
    - yajra/laravel-datatables-oracle[v10.2.0, ..., v10.2.3] require illuminate/view ^9 -> satisfiable by illuminate/view[v9.0.0, ..., v9.52.16].
    - Only one of these can be installed: illuminate/view[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.7, v11.0.0, ..., v11.3.1], laravel/framework[v11.0.0, ..., v11.3.1]. laravel/framework replaces illuminate/view and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, ..., v11.3.1].
    - Root composer.json requires yajra/laravel-datatables-oracle ^10.2 -> satisfiable by yajra/laravel-datatables-oracle[v10.2.0, ..., v10.11.4].

PS C:\Users\sr\Documents\DEV\projects\apidmanagerv3>

Can anyone help me?

composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "php": "^8.0.2",
        "barryvdh/laravel-dompdf": "^2.0",
        "guzzlehttp/guzzle": "^7.2",
        "kyslik/column-sortable": "^6.4",
        "laravel/framework": "^11.0",
        "laravel/sanctum": "^4.0",
        "laravel/tinker": "^2.7",
        "laravel/ui": "^4.0",
        "laravelcollective/html": "^6.3",
        "league/flysystem-ftp": "3.0",
        "league/flysystem-sftp-v3": "3.15.0",
        "maatwebsite/excel": "^3.1",
        "milon/barcode": "*",
        "phpmailer/phpmailer": "^6.6",
        "phpoffice/phpspreadsheet": "^1.25",
        "phpseclib/phpseclib": "^3.0",
        "spatie/laravel-permission": "^5.5",
        "yajra/laravel-datatables-oracle": "^10.2"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^8.1",
        "phpunit/phpunit": "^10.0",
        "spatie/laravel-ignition": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}
0 likes
5 replies
tykus's avatar

Update the Datatables dependency to ^11 for Laravel 11 support

"yajra/laravel-datatables-oracle": "^11.0"
1 like
RiekMedia's avatar

@tykus Thanks for the info, I had tried that too, but then these errors follow

Problem 1
    - Conclusion: don't install laravel/framework v11.0.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.3 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.4 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.5 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.6 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.7 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.0.8 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.1.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.1.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.2.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.3.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.3.1 (conflict analysis result)
    - illuminate/view[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.2.10) does not satisfy that requirement.
    - illuminate/view[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.2.10) does not satisfy that requirement.
    - illuminate/view[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.2.10) does not satisfy that requirement.
    - laravelcollective/html[v6.4.0, ..., v6.4.1] require illuminate/view ^6.0|^7.0|^8.0|^9.0|^10.0 -> satisfiable by illuminate/view[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.7].
    - laravelcollective/html v6.3.0 requires illuminate/view ^6.0|^7.0|^8.0|^9.0 -> satisfiable by illuminate/view[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16].
    - Only one of these can be installed: illuminate/view[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.7, v11.0.0, ..., v11.3.1], laravel/framework[v11.0.0, ..., v11.3.1]. laravel/framework replaces illuminate/view and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, ..., v11.3.1].
    - Root composer.json requires laravelcollective/html ^6.3 -> satisfiable by laravelcollective/html[v6.3.0, v6.4.0, v6.4.1].

PS C:\Users\sr\Documents\DEV\projects\apidmanagerv3>
tykus's avatar

@RiekMedia this package laravelcollective/html is retired and needs replacing if you want to update beyond Laravel 10.

1 like
RiekMedia's avatar

@tykus Thank you, now that you mention it, there was something. It needs to be replaced with spatie/laravel-html

tykus's avatar

@RiekMedia you're going to come across this type of behaviour during most major version updates; just read the message(s) to understand what is going on. Often dependencies just need to be bumped to the latest version (see their own Github repos) or have been abandoned and need replacing.

Mark the thread closed if you're all set

1 like

Please or to participate in this conversation.