laravel/ui[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0

13,146

I used this:

composer require laravel/ui:^2.4

instead of

composer require laravel/ui

and it worked! according to this laravel document [link]: https://laravel.com/docs/7.x/frontend

Share:
13,146
kiana.ka
Author by

kiana.ka

Updated on June 15, 2022

Comments

  • kiana.ka
    kiana.ka almost 2 years

    I try to install:

    composer require laravel/ui

    But i Keep receive this error:

    laravel/ui[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. - Root composer.json requires laravel/ui ^3.2 -> satisfiable by laravel/ui[v3.2.0, 3.x-dev]. and here is my composer.json:

    {
        "name": "laravel/laravel",
        "type": "project",
        "description": "The Laravel Framework.",
        "keywords": [
            "framework",
            "laravel"
        ],
        "license": "MIT",
        "require": {
            "php": "^7.2.5|^8.0",
            "fideloper/proxy": "^4.4",
            "fruitcake/laravel-cors": "^2.0",
            "guzzlehttp/guzzle": "^6.3.1|^7.0.1",
            "laravel/framework": "^7.29",
            "laravel/tinker": "^2.5"
        },
        "require-dev": {
            "facade/ignition": "^2.0",
            "fakerphp/faker": "^1.9.1",
            "mockery/mockery": "^1.3.1",
            "nunomaduro/collision": "^4.3",
            "phpunit/phpunit": "^8.5.8|^9.3.3"
        },
        "config": {
            "optimize-autoloader": true,
            "preferred-install": "dist",
            "sort-packages": true
        },
        "extra": {
            "laravel": {
                "dont-discover": []
            }
        },
        "autoload": {
            "psr-4": {
                "App\\": "app/"
            },
            "classmap": [
                "database/seeds",
                "database/factories"
            ]
        },
        "autoload-dev": {
            "psr-4": {
                "Tests\\": "tests/"
            }
        },
        "minimum-stability": "dev",
        "prefer-stable": true,
        "scripts": {
            "post-autoload-dump": [
                "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
                "@php artisan package:discover --ansi"
            ],
            "post-root-package-install": [
                "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
            ],
            "post-create-project-cmd": [
                "@php artisan key:generate --ansi"
            ]
        }
    }
    
    

    I am a beginner in laravel. Hope anyone provide the solution. Thanks in advance.