composer require laravel/ui. Don't install illuminate/console v7.12.0 - laravel

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

Related

Composer require / update issues [duplicate]

This question already has answers here:
Reference - Composer error "Your PHP version does not satisfy requirements" after upgrading PHP
(3 answers)
Closed 8 months ago.
Appreciate this is a common issue but I never understand what Composer is suggesting / wants from me when it throws these sorts of issues.
I have a Laravel app that I'm trying to install a new package into.
The following are the errors, how am I supposed to interpret what it's saying?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v8.9.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.8.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.7.1 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.7.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.6.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.5.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
... more of the same errors
- Conclusion: don't install laravel/framework v8.83.17
- Conclusion: don't install laravel/framework v8.83.16
- Conclusion: don't install laravel/framework v8.83.15
- Conclusion: don't install laravel/framework v8.83.14
- Conclusion: don't install laravel/framework v8.83.13
- Conclusion: don't install laravel/framework v8.83.12
... more of the same
- Installation request for laravel/framework (locked at v8.21.0, required as ^8.0) -> satisfiable by laravel/framework[v8.21.0].
- Installation request for spatie/laravel-health ^1.9 -> satisfiable by spatie/laravel-health[1.9.0, 1.9.1, 1.9.2].
- Can only install one of: laravel/framework[9.x-dev, 8.x-dev].
- Can only install one of: laravel/framework[v8.12.0, 9.x-dev].
- Can only install one of: laravel/framework[v8.12.1, 9.x-dev].
... more of the same
- Conclusion: install laravel/framework 9.x-dev
- Installation request for laravel/framework ^8.0 -> satisfiable by laravel/framework[8.x-dev, v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.10.0, v8.11.0, v8.11.1, v8.11.2, v8.12.0, v8.12.1, v8.12.2, v8.12.3, v8.13.0, v8.14.0, v8.15.0, v8.16.0, v8.16.1, v8.17.0, v8.17.1, v8.17.2, v8.18.0, v8.18.1, v8.19.0, v8.2.0, v8.20.0, v8.20.1, v8.21.0, v8.22.0, v8.22.1, v8.23.0, v8.23.1, v8.24.0, v8.25.0, v8.26.0, v8.26.1, v8.27.0, v8.28.0, v8.28.1, v8.29.0, v8.3.0, v8.30.0, v8.30.1, v8.31.0, v8.32.0, v8.32.1, v8.33.0, v8.33.1, v8.34.0, v8.35.0, v8.35.1, v8.36.0, v8.36.1, v8.36.2, v8.37.0, v8.38.0, v8.39.0, v8.4.0, v8.40.0, v8.41.0, v8.42.0, v8.42.1, v8.43.0, v8.44.0, v8.45.0, v8.45.1, v8.46.0, v8.47.0, v8.48.0, v8.48.1, v8.48.2, v8.49.0, v8.49.1, v8.49.2, v8.5.0, v8.50.0, v8.51.0, v8.52.0, v8.53.0, v8.53.1, v8.54.0, v8.55.0, v8.56.0, v8.57.0, v8.58.0, v8.59.0, v8.6.0, v8.60.0, v8.61.0, v8.62.0, v8.63.0, v8.64.0, v8.65.0, v8.66.0, v8.67.0, v8.68.0, v8.68.1, v8.69.0, v8.7.0, v8.7.1, v8.70.0, v8.70.1, v8.70.2, v8.71.0, v8.72.0, v8.73.0, v8.73.1, v8.73.2, v8.74.0, v8.75.0, v8.76.0, v8.76.1, v8.76.2, v8.77.0, v8.77.1, v8.78.0, v8.78.1, v8.79.0, v8.8.0, v8.80.0, v8.81.0, v8.82.0, v8.83.0, v8.83.1, v8.83.10, v8.83.11, v8.83.12, v8.83.13, v8.83.14, v8.83.15, v8.83.16, v8.83.17, v8.83.2, v8.83.3, v8.83.4, v8.83.5, v8.83.6, v8.83.7, v8.83.8, v8.83.9, v8.9.0].
You have to upgrade your laravel version to correspond with your PHP 8.0.15 (switch to Laravel version 9) or downgrade your php version to works with Laravel 8.* so use PHP 7.4.30 but it's not recommanded beacuse PHP 7.4 ends support in 28 Nov 2022.
That's it !

composer require laravel/passport not working in laravel 5.8

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.

jordanmiguel/laravel-popular can't install

jordanmiguel/laravel-popular can't install
composer require jordanmiguel/laravel-popular
$ composer require jordanmiguel/laravel-popular
Using version ^1.0 for jordanmiguel/laravel-popular
./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
- Conclusion: don't install jordanmiguel/laravel-popular v1.0.4
- Conclusion: don't install jordanmiguel/laravel-popular v1.0.3
- Conclusion: don't install jordanmiguel/laravel-popular v1.0.2
- Conclusion: don't install jordanmiguel/laravel-popular v1.0.1
- Conclusion: remove laravel/framework v6.0.3
- Installation request for jordanmiguel/laravel-popular ^1.0 -> satisfiable by jordanmiguel/laravel-popular[v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4].
- Conclusion: don't install laravel/framework v6.0.3
- don't install illuminate/support 5.5.x-dev|don't install laravel/framework v6.0.3
-
Installation failed, reverting ./composer.json to its original content.
Edit: As noted by the package author below, a new version has been tagged and released. You should now update your composer.json to stable releases again.
Although the code of that package has been updated to support Laravel 6, a new release has not been tagged or pushed. If you want to use it with Laravel 6 you will have to use dev-master as your version constraint
composer require jordanmiguel/laravel-popular:dev-master
A new version has been tagged. You can just
composer require jordanmiguel/laravel-popular

Can't install SweetAlert2 in Laravel 6.0

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for realrashid/sweet-alert ^2.0 -> satisfiable by realrashid/sweet-alert[v2.0].
- Conclusion: remove laravel/framework v6.0.0
- Conclusion: don't install laravel/framework v6.0.0
- realrashid/sweet-alert v2.0 requires laravel/framework ~5.4.0|~5.8.0|~5.9.0 -> satisfiable by laravel/framework[5.4.x-dev, 5.8.x-dev].
- Can only install one of: laravel/framework[5.8.x-dev, v6.0.0].
- Can only install one of: laravel/framework[5.4.x-dev, v6.0.0].
- Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0].
The realrashid/sweet-alert package has not been updated for use in Laravel 6.0. You will have to wait until it is updated, update the package yourself, or use a different package for SweetAlert2.
Update: The package has been updated for use with Laravel 6.0.
composer require realrashid/sweet-alert

Problem of Laravel Framework version for using the package mailjet/laravel-mailjet

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.*

Resources