TappNetwork / filament-survey

23 stars 8 forks source link

Laravel 11 with PHP 8.2 installation error #11

Open haiderghaleb opened 2 months ago

haiderghaleb commented 2 months ago

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 commented 4 weeks ago

Same issue here

RawanD201 commented 4 weeks ago

same error