Search code examples
phplaravellaravel-5laravel-11laravel-admin

Is Laravel-admin 1.8.19 not compatible with laravel 11.8.0? [Your requirements could not be resolved to an installable set of packages.]


I am using Laravel 11.8.0 for my web application project and wanted to make an admin page. Therefore, I tried to install laravel-admin. However, it gave me an error saying, "Your requirements could not be resolved to an installable set of packages." Does this mean that laravel-admin is not compatible with laravel 11? I was confused because laravel-admin on GitHub just states that the requirements are PHP >= 7.0.0 and Laravel >= 5.5.0.

Below is the full error message:

astroid@Tatsunoris-MacBook-Pro wvs % composer require encore/laravel-admin
./composer.json has been updated
Running composer update encore/laravel-admin
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - encore/laravel-admin v1.1.6 requires laravel/framework 5.1.* -> found laravel/framework[v5.1.0, ..., v5.1.46] but it conflicts with your root composer.json require (^11.0).
    - encore/laravel-admin[v1.2.6, ..., v1.2.10] require laravel/framework 5.2.* -> found laravel/framework[v5.2.0, ..., v5.2.45] but it conflicts with your root composer.json require (^11.0).
    - encore/laravel-admin[v1.3.3, ..., v1.3.4] require laravel/framework 5.3.* -> found laravel/framework[v5.3.0, ..., v5.3.31] but it conflicts with your root composer.json require (^11.0).
    - encore/laravel-admin[v1.4.1, ..., v1.4.6] require laravel/framework 5.4.* -> found laravel/framework[v5.4.0, ..., v5.4.36] but it conflicts with your root composer.json require (^11.0).
    - encore/laravel-admin[v1.5.5, ..., v1.7.6] require laravel/framework ~5.5 -> found laravel/framework[v5.5.0, ..., v5.8.38] but it conflicts with your root composer.json require (^11.0).
    - encore/laravel-admin[v1.7.7, ..., v1.7.9] require laravel/framework ~5.5|~6.0 -> found laravel/framework[v5.5.0, ..., v5.8.38, v6.0.0, ..., v6.20.44] but it conflicts with your root composer.json require (^11.0).
    - doctrine/common[v2.4.0, ..., v2.5.3] require doctrine/inflector 1.* -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - doctrine/common[v2.6.0, ..., v2.6.2] require php ~5.5|~7.0 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/common[v2.7.0, ..., v2.7.3] require php ~5.6|~7.0 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/common[v2.8.0, ..., v2.8.1] require php ~7.1 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/common[v2.9.0, ..., 2.13.0] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/dbal[v2.6.0, ..., v2.9.3] require php ^7.1 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/common[2.13.1, ..., 2.13.3] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.2.17) does not satisfy that requirement.
    - doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.2.17) does not satisfy that requirement.
    - carbonphp/carbon-doctrine-types 3.2.0 conflicts with doctrine/dbal 3.8.4.
    - encore/laravel-admin[v1.7.11, ..., v1.8.14] require doctrine/dbal 2.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9].
    - nesbot/carbon 3.4.0 requires carbonphp/carbon-doctrine-types * -> satisfiable by carbonphp/carbon-doctrine-types[3.2.0].
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.5.4.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.4.6.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.8.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.3.5.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.2.2.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.5.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.1.0.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 3.0.0.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.9.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.8.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.13.1.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.12.1.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.5.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.3.2.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.2.2.
    - symfony/http-foundation v7.0.7 conflicts with doctrine/dbal 2.1.7.
    - laravel/framework v11.8.0 requires nesbot/carbon ^2.72.2|^3.0 -> satisfiable by nesbot/carbon[3.4.0].
    - laravel/framework v11.8.0 requires symfony/http-foundation ^7.0 -> satisfiable by symfony/http-foundation[v7.0.7].
    - doctrine/dbal[v2.5.0, ..., v2.5.2] require doctrine/common >=2.4,<2.6-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.5.3].
    - doctrine/dbal[v2.5.3, ..., v2.5.5] require doctrine/common >=2.4,<2.7-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.6.2].
    - doctrine/dbal[v2.5.6, ..., v2.5.13] require doctrine/common >=2.4,<2.8-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.7.3].
    - doctrine/dbal[v2.4.0, ..., v2.4.5] require doctrine/common ~2.4 -> satisfiable by doctrine/common[v2.4.0, ..., 2.13.3].
    - laravel/framework is locked to version v11.8.0 and an update of this package was not requested.
    - encore/laravel-admin[v1.8.15, ..., v1.8.19] require doctrine/dbal 2.*|3.* -> satisfiable by doctrine/dbal[2.1.5, ..., 2.13.9, 3.0.0, ..., 3.8.4].
    - Root composer.json requires encore/laravel-admin * -> satisfiable by encore/laravel-admin[v1.1.6, ..., v1.8.19].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require encore/laravel-admin:*" to figure out if any version is installable, or "composer require encore/laravel-admin:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

When I searched up, the versions supported by the encore/laravel-admin package, is Laravel versions up to 8.x. However, this contradicts to what it says on the GitHub page of laravel-admin, stating Laravel >= 5.5.0. is the minimum requirement.


Solution

  • That package was updated one than a year ago. I recommend that you don't use unmaintained libraries on your project.

    For what I see, the latest version of that package need a version of doctrine/dbal that is not compatible with Laravel 11.

    I also see that this admin library has some commits that haven't been tagged, so maybe you can try to install it using composer require encore/laravel-admin:dev-master