I have an error when I install composer for laravel 11;
"require": {
"php": "^8.2",
"ext-mongodb": "*",
"ext-pdo": "*",
"doctrine/dbal": "^4.2",
"laravel/fortify": "^1.21",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"mongodb/laravel-mongodb": "^4.2",
"sentry/sentry-laravel": "^4.9",
"spatie/laravel-permission": "^6.4"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3",
"barryvdh/laravel-ide-helper": "^3.0",
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3",
"roave/security-advisories": "dev-latest",
"spatie/laravel-ignition": "^2.4"
},
composer install
Problem 1
- Root composer.json requires mongodb/laravel-mongodb ^4.2 -> satisfiable by mongodb/laravel-mongodb[4.2.0, ..., 4.8.0].
- mongodb/laravel-mongodb[4.2.0, ..., 4.8.0] require ext-mongodb ^1.15 -> it has the wrong version installed (1.12.0).