Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 826
kiana.ka Avatar asked Mar 03 '21 14:03

kiana.ka


People also ask

Which Laravel version of Laravel UI is compatible with Laravel 8?

laravel/ui 3.x is compitable for Laravel 8.x. look here May be you need laravel/ui 2.x. 2.4.1 is the latest version of 2x, which was release Only the latest major version of Laravel UI receives bug fixes. The table below lists compatible Laravel versions:

How to call a preset from the Ui command in Laravel?

use Laravel \ Ui \ UiCommand ; UiCommand :: macro ( 'nextjs', function ( UiCommand $command) { // Scaffold your frontend... }); Then, you may call the new preset via the ui command: Thank you for considering contributing to UI! The contribution guide can be found in the Laravel documentation.

Does Laravel require JavaScript?

Laravel does not require you to use a specific JavaScript framework or library to build your applications. In fact, you don't have to use JavaScript at all. However, Laravel does include some basic scaffolding to make it easier to get started writing modern JavaScript using the Vue library.

How many stars does Laravel ui have?

Laravel UI utilities and presets. Installs : 28 412 013 Dependents : 542 Suggesters : 1 Security : 0 Stars : 1 626 Forks : 332 This package is auto-updated.


2 Answers

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

like image 119
kiana.ka Avatar answered Oct 23 '22 08:10

kiana.ka


According to Laravel framework documentation use this command

Laravel 8.* in requires laravel/ui version 3.4

composer require laravel/ui:^3.4

Laravel 7. in requires laravel/ui version 2.4

composer require laravel/ui:^2.4

Laravel 6.* in requires specific laravel/ui version 1.0

composer require laravel/ui:^1.0 --dev

Laravel 7 UI documentation

Laravel 6 UI documentation

like image 33
Vishal Vaghasiya Avatar answered Oct 23 '22 10:10

Vishal Vaghasiya