While installing laravel/ui I got this following error.
Using version ^2.0 for laravel/ui
Problem 1
- Conclusion: remove laravel/framework v6.18.0
- Conclusion: don't install laravel/framework v6.18.0
- laravel/ui 2.x-dev requires illuminate/support ^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/support[7.x-dev, v7.0.0, v7.0.1].
- laravel/ui v2.0.0 requires illuminate/support ^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/support[7.x-dev, v7.0.0, v7.0.1].
- Can only install one of: laravel/framework[7.x-dev, v6.18.0].
- don't install illuminate/support 7.x-dev|don't install laravel/framework v6.18.0
- don't install illuminate/support v7.0.0|don't install laravel/framework v6.18.0
- don't install illuminate/support v7.0.1|don't install laravel/framework v6.18.0
- Installation request for laravel/framework (locked at v6.18.0, required as ^6.2) -> satisfiable by laravel/framework[v6.18.0].
- Installation request for laravel/ui ^2.0 -> satisfiable by laravel/ui[2.x-dev, v2.0.0].
I'm using laravel version 6.18. How to solve this problem?
Try this:
it's working for my laravel 6.2
composer require laravel/ui "^1.2"
Laravel ui has been released alongside Laravel 7 about an hour ago and Laravel ui 2.0 depends on Laravel 7.
Either upgrade your project to Laravel 7 or install Laravel ui 1.x instead.
if you are using laravel 6, then try this command
composer require laravel/ui "^1.0" --dev -vvv
Are you trying to upgrade to laravel 7?
If that is the case you have to be doing something wrong I just updated as I said with no problems.
You have to update laravel first not the framework.
Only run composer update for framework after laravel is updated.
If you don't do this correctly you will always get errors.
Also, run composer clearcache
composer selfupdate
composer dumpautoload
If needed.
Also sometimes it helps to delete vendor and rerun composer install.
For laravel 6x:
composer require laravel/ui "^1.2"
For laravel 7x:
composer require laravel/ui "^2.0"
For laravel 8x:
composer require laravel/ui "^3.0"
For laravel 9x:
composer require laravel/ui "^4.0"
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
Run for current available version
composer require laravel/ui
Related
I am using Laravel 8.0 version.
Problem 1
- facade/ignition is locked to version 2.4.1 and an update of this package was not requested.
- facade/ignition 2.4.1 requires php ^7.2.5 -> your php version (8; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
Problem 2
- facade/ignition-contracts 1.0.1 requires php ^7.1 -> your php version (8; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- nunomaduro/collision v4.3.0 requires facade/ignition-contracts ^1.0 -> satisfiable by facade/ignition-contracts[1.0.1].
- nunomaduro/collision is locked to version v4.3.0 and an update of this package was not requested.
enter image description here
You need to pull in laravel/ui v 3.x version 2.x is not compatible with Laravel 8.x
https://github.com/laravel/ui
If you have a "laravel/ui": "^2.4" in your composer.json, remove it and run
composer update
And then pull in the package
composer require laravel/ui
Or you can just update the entry in composer.json to
"require": {
"laravel/ui": "^3.0"
}
And then run
composer update
I am working on bagiato(laravel). When I run the command "composer require laravel/ui" this error comes.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install illuminate/console v7.12.0
- don't install illuminate/console 7.x-dev|don't install laravel/framework v6.18.15
- don't install illuminate/console 7.x-dev|remove laravel/framework v6.18.15
- don't install illuminate/console 7.x-dev|don't install laravel/framework v6.18.15
- Installation request for illuminate/console ^7.12 -> satisfiable by illuminate/console[7.x-dev, v7.12.0].
- Installation request for laravel/framework (locked at v6.18.15, required as ^6.0) -> satisfiable by laravel/framework[v6.18.15].
You are trying to install the wrong version of laravel/ui.
laravel/ui version 1 is what you want. Version 2 is trying to install and only laravel 7+ supports it.
composer require vendor/package:version
composer require laravel/ui:1.2.0 <- latest version of laravel/ui that works with Laravel 6
I'm using Laravel 5.8 although 6.0.3 is available. I'm using it because the tutorial I'm following is using Laravel 5.8.
When, I command:
composer require laravel/passport
it throws an error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.8.35
- Conclusion: don't install laravel/framework v5.8.35
- laravel/passport 8.x-dev requires illuminate/encryption ^6.0|^7.0 -> satisfiable by illuminate/encryption[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- laravel/passport v8.0.0 requires illuminate/encryption ^6.0|^7.0 -> satisfiable by illuminate/encryption[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- don't install illuminate/encryption 6.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/encryption 7.0.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.1|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.2|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.3|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.4|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.1.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.2.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.3.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.4.1|don't install laravel/framework v5.8.35
- Installation request for laravel/framework (locked at v5.8.35, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.35].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0].
Installation failed, reverting ./composer.json to its original content.
Latest version of Laravel Passport dropped support for Laravel 5.8
Install earlier version
composer require laravel/passport:7.5.1
From the release notes of Laravel Passport
Changed
Rework HandlesOAuthErrors trait to middleware (#937)
Use a renderable exception for OAuth errors (#1066)
Use diactoros 2.0 and psr-http-factory (aadf603)
Replaced helpers with Blade directives (#939)
Use caret for constraints (d906804)
Dropped support for Laravel 5.8 (654cc09)
Dropped support for PHP 7.1 (3c830ac)
Upgrade to league/oauth2-server 8.0 (97e3026)
You can use this command to install passport on laravel 5.8 projects: composer require laravel/passport "7.5.1" or you can include passport in composer dependecies:
"require": {
...
"laravel/passport": "7.5.1",
....
}
and then run composer update Both will install passport in your project.
composer require laravel/passport works on the latest version of laravel.
You have to download the version according to your laravel version.
So to solve, go-to Laravel docs and select the version you are currently running and then go to Passport it will show you the appropriate version of Passport to install for your version of laravel.
I've a problem for using mailjet/laravel-mailjet, it seems a problem of versions.
I was using Laravel Framework 5.6.33 and i got
Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
i've change my composer.json and now, i'm using Laravel Framework 5.6.39 but i've still the same problem
$ php artisan --version
Laravel Framework 5.6.39
There is the answer when i try to install mailjet/laravel-mailjet
$ composer require mailjet/laravel-mailjet
Using version ^1.1 for mailjet/laravel-mailjet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.* -> satisfiable by laravel/framework[5.4.x-dev].
- Installation request for mailjet/laravel-mailjet ^1.1 -> satisfiable by mailjet/laravel-mailjet[1.1.0].
- Installation request for laravel/framework 5.6.39 -> satisfiable by laravel/framework[v5.6.39].
the 4th line explains it all.
mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.*
so, you can't use v5.6.39, only 5.4.*
After running,composer require laravel/scout
Added this in the config/app.php configuration file:
Laravel\Scout\ScoutServiceProvider::class,
Finally
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
The problem is it doesn't publish the scout.php file in the config folder...
Ok, to see you are doing something wrong, just use php artisan vendor:publish, without any parameter.
it will publish all available provides. if it doesn't work there should be an issue with the package, consider re-install it.
I had the same problem but using Lumen and the output in my case it was something like this:
Problem 1
- Conclusion: don't install laravel/scout v3.0.7
- Conclusion: don't install laravel/scout v3.0.6
- Conclusion: don't install laravel/scout v3.0.5
- Conclusion: don't install laravel/scout v3.0.4
- Conclusion: don't install laravel/scout v3.0.3
- Conclusion: don't install laravel/scout v3.0.2
- Conclusion: don't install laravel/scout v3.0.1
- Conclusion: don't install laravel/scout v3.0.0
- Conclusion: don't install laravel/scout 3.0.x-dev
- Conclusion: remove illuminate/bus v5.3.23
- Installation request for laravel/scout ^3.0 -> satisfiable by laravel/scout[3.0.x-dev, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7].
- Conclusion: don't install illuminate/bus v5.3.23
- laravel/scout 3.0.x-dev requires illuminate/bus ~5.4 -> satisfiable by illuminate/bus[5.4.x-dev, 5.5.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.9].
- Can only install one of: illuminate/bus[5.4.x-dev, v5.3.23].
- Can only install one of: illuminate/bus[5.5.x-dev, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.0, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.13, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.17, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.19, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.27, v5.3.23].
- Can only install one of: illuminate/bus[v5.4.9, v5.3.23].
- Installation request for illuminate/bus (locked at v5.3.23) -> satisfiable by illuminate/bus[v5.3.23].
Scout is for be used in version 5.4, So in the file composer.json change the version in the following line:
"laravel/lumen-framework": "5.4.*"
after this just run:
composer dump-autoload
composer update
composer require laravel/scout
and for finish:
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
Well this is the case for Lumen, but if is not your case, Try to update the Laravel version on composer file, and then update before install scout.
I hope this helps.
You just need to manually copy and create the config file:
from:
/vendor/laravel/scout/config/scout.php
to:
/config/scout.php
This can happen if you have cached your config using artisan config:cache. To solve it clear the config cache (by running artisan config:cache again). Then retry the vendor publish command.