I have a same problem too i wanted to install lighthouse with laravel 12 . but i got the problem bellow . composer require nuwave/lighthouse
./composer.json has been updated
Running composer update nuwave/lighthouse
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nuwave/lighthouse * -> satisfiable by nuwave/lighthouse[v0.1.0, ..., v0.7.8, v1.0.0, ..., v1.1.0, v2.0.0, ..., v2.6.4, v3.0.0, ..., v3.7.0, v4.0.0, ..., v4.18.0, v5.0.0, ..., v5.72.0, v6.0.0, ..., v6.50.0].
- nuwave/lighthouse[v0.1.0, ..., v0.7.8, v1.0.0] require illuminate/support ^5.2 -> found illuminate/support[v5.2.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v1.0.1, ..., v1.1.0] require illuminate/console ^5.2 || ^5.3 -> found illuminate/console[v5.2.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v2.0.0, ..., v2.2.1] require illuminate/contracts ^5.4 -> found illuminate/contracts[v5.4.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v2.3, ..., v2.6.4] require illuminate/contracts 5.5.|5.6.|5.7.* -> found illuminate/contracts[v5.5.0, ..., v5.7.28] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v3.0.0, ..., v3.7.0, v4.0.0, ..., v4.1.1] require illuminate/contracts 5.5.|5.6.|5.7.|5.8. -> found illuminate/contracts[v5.5.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v4.10.0, ..., 4.11.0] require illuminate/contracts 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 -> found illuminate/contracts[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v4.12.0, ..., v4.16.3] require illuminate/auth 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 ||
^7.0 -> found illuminate/auth[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v4.17.0, ..., v4.18.0] require illuminate/auth 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 ||
^7.0 || ^8.0 -> found illuminate/auth[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v4.2.0, ..., v4.9.0] require illuminate/contracts 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0
-> found illuminate/contracts[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v5.0.0, ..., v5.39.2] require illuminate/auth 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 ->
found illuminate/auth[v5.6.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v5.40.0, ..., v5.70.3] require illuminate/auth 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 || ^9 -> found illuminate/auth[v5.6.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v5.71.0, ..., v5.72.0] require illuminate/auth 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 || ^9 || ^10 -> found illuminate/auth[v5.6.0, ..., v5.8.36, 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.28] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v6.0.0, ..., v6.35.0] require illuminate/auth ^9 || ^10 -> found illuminate/auth[v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.28] but these were not loaded, likely because it conflicts with another require.
- nuwave/lighthouse[v6.36.0, ..., v6.50.0] require illuminate/auth ^9 || ^10 || ^11 -> found illuminate/auth[v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.28, v11.0.0, ..., v11.44.1] but these were not loaded, likely because it
conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require nuwave/lighthouse:*" to figure out if any version is installable, or "composer require nuwave/lighthouse:^2.1" if you know which you need. ...............................................................................................................................................................................................................then my composer.json file {
"$schema": "https://getcomposer.org/schema.json",
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": [
"laravel",
"framework"
],
"license": "MIT",
"require": {
"php": "^8.2",
"laravel/framework": "^12.0",
"laravel/tinker": "^2.10.1"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.13",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^11.5.3"
},
"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",
"@php -r "file_exists('database/database.sqlite') || touch('database/database.sqlite');"",
"@php artisan migrate --graceful --ansi"
],
"dev": [
"Composer\Config::disableProcessTimeout",
"npx concurrently -c "#93c5fd,#c4b5fd,#fdba74" "php artisan serve" "php artisan queue:listen --tries=1" "npm run dev" --names='server,queue,vite'"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}