Problem with laravel/ui in laravel when updating package while upgrading to the latest version of Laravel - composer-php

I am currently upgrading from Laravel 5 to 8 although I'm not sure if that is relevant or not. I am running PHP 8 in a docker environment having just upgraded from php 7.3. I have deleted my vendor folder, updated composer.json to run all the latest versions of my packages and run composer install. I am getting the error below:
Problem 1
- Root composer.json requires laravel/ui ^3.3 -> satisfiable by laravel/ui[v3.3.0]
- Conclusion: don't install league/flysystem 2.2.0 (conflict analysis result)
- Conclusion: don't install league/flysystem 1.1.3 (conflict analysis result)
I am confused by the top line. What exactly is it trying to tell me? I am obviously requesting version ^3.3 of the package. Is it telling me how I need to specifiy this in composer.json ([v3.3.0])? I have tried writing it as v3.3.0, 3.3.0 and ^3.3 and always I get the same 'Problem'. I am also getting the 'conflict analysis result' errors for other packages below this although I'll assume for now that these are separate and unrelated issues which I will address after I have resolved this issue. Can anybody suggest how I can go about resolving this issue?
Thanks

Related

Why haven't install predis on laravel 8

According laravel manual https://laravel.com/docs/8.x/redis for install predis, need run: composer require predis/predis. When that command is running (for laravel 8) - appear next Error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- facade/ignition is locked to version 2.4.2 and an update of this package was not requested.
- facade/ignition 2.4.2 requires php ^7.2.5 -> your php version (8.0.0) does not satisfy that requirement.
Problem 2
- facade/ignition-contracts 1.0.1 requires php ^7.1 -> your php version (8.0.0) 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.
In my composer.json: "php": "^7.2.5|^8.0",
What here is wrong))?
You need to update facade/ignition and nunomaduro/collision first to support PHP 8 in your project.
Running the following commands should update them accordingly.
composer require --dev facade/ignition nunomaduro/collision
composer require predis/predis
i run comand: composer require --dev facade/ignition nunomaduro/collision and have got new Error: Your requirements could not be resolved to an installable set of packages.
Problem 1
- facade/ignition[2.10.0, ..., 2.10.2] require facade/ignition-contracts ^1.0.2 -> found facade/ignition-contracts[1.0.2] but the package is fixed to 1.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires facade/ignition ^2.10 -> satisfiable by facade/ignition[2.10.0, 2.10.1, 2.10.2].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I have new laravel 8 project (blog) && use new Vagrant Homestead (with all updates) && i use laravel 8 manual)) may be laravel developers is a little busy and is a little tired to give full instruction in manual). I think may be for Laravel8 Homestead allready is not suitable and need Docker and Sail... But project work (with the exception of predis) Now i use phpredis. May be will try use docker... As for Vagrant&&Homestead - https://laravel.com/docs/8.x/homestead#introduction i don't understand what is problem to use that technology .... god with they)...

Composer failure when installing Laravel 5.8 + Voyager

I installed laravel 5.8, and then i did composer require tcg/voyager:1.3.2. I didn't used composer require tcg/voyager cause apparently it doesn't supports laravel 5.8. However it keeps failling and throwing this problem:
Problem 1
- Can only install one of: league/flysystem[1.1.3, 1.0.x-dev].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.3].
- tcg/voyager v1.3.2 requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.x-dev].
- Installation request for tcg/voyager 1.3.2 -> satisfiable by tcg/voyager[v1.3.2].
- Installation request for league/flysystem 1.1.3 -> satisfiable by league/flysystem[1.1.3].
I tried first installing composer require league/flysystem:1.1.3 before voyager but still it fails with the same error. Am at the lost here.
Have you checked whether league/flysystem has been installed before? According to that error message it is installed in v1.1.3, while tcg/voyager requires v1.0.* - this is not compatible.
v1.1 of the flysystem is pretty new, and only the current dev branches of Voyager contain fixes for this.
To resolve this situation, you could run composer require league/flysystem:"~1.0.41"

how can we install composer require spatie/laravel-searchable in 5.7 version of laravel

I am setting up search in my project.which includes more than one model to search.Firstly, I tried using scout and scout extended but it does not give much flexibility with where clause.so I thought to have a look to composer require spatie/laravel-searchable but it seems its dependency is laravel 5.8.
but my laravel version is 5.7.28.Please provide me the solution.
How should I proceed with the same?
I tried using scout and scout extended but it does not give much flexibility with where clause
$channels = Channel::where('created_at', '>', now()->subDays(7))->get();
return view('search.index')->with(compact('channels'));
this works perfectly as this is simple query but if I try the same with
the scout and algolia(search request)
$channels = Channel::search($request->q)->where('created_at', '>', now()-
>subDays(7))->get();
it does not give any result.
when I tried installing composer require spatie/laravel-searchable
I got this error
Problem 1
Can only install one of: laravel/framework[v5.7.28, 5.8.x-dev].
Can only install one of: laravel/framework[5.8.x-dev, v5.7.28].
Can only install one of: laravel/framework[5.8.x-dev, v5.7.28].
spatie/laravel-searchable 1.3.0 requires laravel/framework ~5.8.0 ->
satisfiable by laravel/framework[5.8.x-dev].
Installation request for spatie/laravel-searchable ^1.3 -> satisfiable
by spatie/laravel-searchable[1.3.0].
Installation request for laravel/framework (locked at v5.7.28, required
as 5.7.*) -> satisfiable by laravel/framework[v5.7.28].
Laravel 5.7 support droped with v1.3.0 so you need to install the older version.
Changelog: https://github.com/spatie/laravel-searchable/blob/master/CHANGELOG.md
You can install the older version using command:
composer require spatie/laravel-searchable:1.2.3
Or add this version into your composer.json file and run composer update

Composer Google API Download Failed

I tried to download google api using composer to a legacy code but, the following error appeared:
composer require google/apiclient:^2.0
./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
- Installation request for google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0].
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Conclusion: don't install guzzlehttp/psr7 1.4.2
- google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3].
- Can only install one of: guzzlehttp/psr7[1.2.0, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.1, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.2, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.3, 1.4.2].
- Installation request for guzzlehttp/psr7 (locked at 1.4.2) -> satisfiable by guzzlehttp/psr7[1.4.2].
Installation failed, reverting ./composer.json to its original content.
What should I do?
Try removing vendor/google and then run composer install again, this worked for me.
Can only install one of: guzzlehttp/psr7[1.2.3, 1.4.2].
Your dependencies led to confusion of two different major versions of the package, but only one can be installed.
The locked at 1.4.2 message means this package has been already installed as per your composer.lock file, and you're trying to install different version not compatible with your existing criteria.
$ composer show -a google/auth | grep psr7
guzzlehttp/psr7 ~1.2
You can check which existing package depends on the locked version by checking the dependency tree:
composer show -t
In some cases, removing composer.lock may help.
Otherwise, to see why (from where) the package is referenced, run:
composer why guzzlehttp/psr7 -t
See also: How to resolve a "Can only install one of:" conflict?
I finally found a solution for me, it works just removing composer.lock!!

Composer error - Your requirements could not be resolved - Laravel 4.2 on Mediatemple

I'm getting a problem reported from composer when running php -d allow_url_fopen=On composer.phar install on mediatemple.
This reports back saying laravel/framework v4.2.6 requires php >=5.4.0 -> no matching package found.
I've updated my php version to be 5.5, but i'm not sure if the above problem is referring to my php version or the laravel/framework package when it says "no matching package found".
when I run the above command, it shows that it is 'installing dependencies (including require-dev)' but i get the problem reported above.
my minimum stability is set to "stable"
could someone help clarify?
It turns out I was using php v5.3 on the CLI while I was running php 5.5 on the domain successfully as they had told me.
In order to use the latest php version on the CLI, i had to run php-latest composer.phar install instead of php composer.phar install
I found this link helpful: https://yesdevnull.net/2014/03/using-php-54-cli-on-media-temples-grid-hosting/

Resources