Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11 with PHP 8.2 installation error #11

Open
haiderghaleb opened this issue Jul 1, 2024 · 2 comments
Open

Laravel 11 with PHP 8.2 installation error #11

haiderghaleb opened this issue Jul 1, 2024 · 2 comments

Comments

@haiderghaleb
Copy link

Hello,

I'm facing issues while installing the "matt-daneshvar/laravel-survey": "dev-translatable",

I'm using Laravel 11 with PHP 8.2 and I followed the installation flow and below you will find my composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The skeleton application for the Laravel framework.",
    "keywords": ["laravel", "framework"],
    "license": "MIT",
    "require": {
        "php": "^8.2",
        "bezhansalleh/filament-shield": "^3.2",
        "filament/filament": "^3.2",
        "laravel/framework": "^11.9",
        "laravel/tinker": "^2.9",
        "matt-daneshvar/laravel-survey": "dev-translatable",
        "tapp/filament-survey": "^3.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.23",
        "laravel/pint": "^1.13",
        "laravel/sail": "^1.26",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^8.0",
        "phpunit/phpunit": "^11.0.1"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/TappNetwork/laravel-survey"
        }
    ],
    "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",
            "@php artisan filament:upgrade"
        ],
        "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"
        ]
    },
    "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
}

when doing composer update, I get the below error:

Loading composer repositories with package information
Updating dependencies                                 
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/database[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.2.14) does not satisfy that requirement.
    - illuminate/database[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.2.14) does not satisfy that requirement.
    - illuminate/database[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.2.14) does not satisfy that requirement.
    - Root composer.json requires matt-daneshvar/laravel-survey dev-translatable -> satisfiable by matt-daneshvar/laravel-survey[dev-translatable].
    - Conclusion: don't install laravel/framework v11.9.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.10.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.11.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.11.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.12.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.13.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v11.9.1 (conflict analysis result)
    - matt-daneshvar/laravel-survey dev-translatable requires illuminate/database ^6.0|^7.0|^8.0|^9.0|^10.0 -> satisfiable by illuminate/database[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.14].
    - Only one of these can be installed: illuminate/database[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.14, v11.0.0, ..., v11.13.0], laravel/framework[v11.9.0, ..., v11.13.0]. laravel/framework replaces illuminate/database and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^11.9 -> satisfiable by laravel/framework[v11.9.0, ..., v11.13.0].

Any solution for this error?

@dharen008
Copy link

Same issue here

@RawanD201
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants