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.
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:
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.
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.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With