This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 2 years ago.
I have the app in Laravel 5.6 and need to cache some models. I found only one package that can provide this (genealabs/laravel-model-caching), but it requires package illuminate/cache 8.0.* that is in conflict with some another require:
Problem 1
Root composer.json requires genealabs/laravel-model-caching ^0.11.1 -> satisfiable by genealabs/laravel-model-caching[0.11.1].
genealabs/laravel-model-caching 0.11.1 requires illuminate/cache ^8.0 -> found illuminate/cache[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
Is there a way how to find out which package is it in a conflict with?
My composer.json requires are:
"require": {
"php": "^7.1.3",
"ext-curl": "*",
"ext-intl": "*",
"ext-json": "*",
"anouar/paypalpayment": ">=3.0",
"barryvdh/laravel-dompdf": "^0.8.6",
"barryvdh/laravel-ide-helper": "^2.5",
"bugsnag/bugsnag-laravel": "^2.0",
"fideloper/proxy": "^4.0",
"gloudemans/shoppingcart": "^2.5",
"guzzlehttp/psr7": "^1.6",
"hazestudio/laravel-gopay-sdk": "^0.1.5",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
"predis/predis": "^1.1",
"tcg/voyager": "^1.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.4",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
}
Thanks a lot in advance for any help.
I think there is package version issue. You need to find genealabs/laravel-model-caching version which is support with laravel 5.6.*
Related
I have cloned laravel 6.2 projects from the git repository into my local system. that project has worked with the laravel socialite package. after cloned I tried with composer install. when the "Generating optimized autoload files" step the following error was thrown.
ErrorException : Declaration of SocialiteProviders\Twitter\Server::getAuthorizationUrl($temporaryIdentifier) should be compatible with League\OAuth1\Client\Server\Server::getAuthorizationUrl($temporaryIdentifier, array $options = Array)
refer screenshot also
Composer.json file having
"require": {
"php": "^7.2",
"camroncade/timezone": "0.1",
"doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.0",
"jenssegers/agent": "^2.6",
"laravel/framework": "^6.2",
"laravel/socialite": "^4.3",
"laravel/tinker": "^2.0",
"maatwebsite/excel": "^3.1",
"scottybo/laravel-facebook-sdk": "^4.0",
"socialiteproviders/facebook": "^1.0",
"socialiteproviders/pinterest": "^3.0",
"socialiteproviders/twitter": "^3.0",
"thujohn/twitter": "^2.2"
},
How to Fix this issue?
I'm currently working on an old project created by different developers. But when I'm adding a new package to composer.json file, it returns a lot of errors. Please see my code and screenshot below.
Package I'm trying to add
"aws/aws-sdk-php-laravel": "~3.0"
composer.json
"require": {
"php": ">=7.0.0",
"aceraven777/laravel-paymaya": "^1.0",
"aloha/twilio": "^4.0",
"fideloper/proxy": "~3.3",
"florianv/laravel-swap": "^1.3",
"freshbitsweb/laratables": "^1.1",
"intervention/image": "^2.4",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"maatwebsite/excel": "~2.1.0",
"mews/captcha": "^2.2",
"paypal/rest-api-sdk-php": "^1.13",
"php-http/guzzle6-adapter": "^1.1",
"php-http/message": "^1.7",
"stevebauman/location": "^3.0",
"tymon/jwt-auth": "dev-develop",
"cartalyst/stripe-laravel": "2.0.*",
"aws/aws-sdk-php-laravel": "~3.0"
}
Errors in command prompt
Remove the package from composer.json and use composer require aws/aws-sdk-php-laravel.
The thing is that when you run composer install it uses composer.lock, but it isn't synced with composer.json. composer update probably will work, but isn't good approach.
First of all, it's no error. These are some warnings and somehow when you want to install your package, package name was added to your composer.json but not download. You can remove that package manually or by composer remove YOUR_PACAKGE.
Then again install that package.
Hi everyone I'm trying to install media library in laravel 7.4 but it have bellow error:
Problem 1
- Installation request for symfony/console 5.0.1 -> satisfiable by symfony/console[v5.0.1].
- Installation request for spatie/laravel-medialibrary ^8.1 -> satisfiable by spatie/laravel-medialibrary[8.1.0].
- Can only install one of: symfony/process[v5.0.1, 4.4.x-dev].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Conclusion: install symfony/process 4.4.x-dev
- Installation request for symfony/process 5.0.1 -> satisfiable by symfony/process[v5.0.1].
Whats wrong with this package, As here link explains the package I resolve requirements :
"require": {
"php": "^7.2.5",
"cyrildewit/eloquent-viewable": "^5.2",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/socialite": "^4.3",
"laravel/tinker": "^2.0",
"morilog/jalali": "^3.1",
"santigarcor/laratrust": "^5.2",
"symfony/console": "5.0.1",
"symfony/process": "5.0.1"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
The Medialibrary package requires exif extension . Enable this extension from the php.ini file.
I'm trying to update the sentry-laravel package because we are using version 0.10.0 while the version 1.4.1 it is available.
I've searched about the composer update command and found that you should only use composer update vendor/package or composer update vendor/package --with-dependencies so I did it and in the end I received the message: Nothing to update.
I don't know if I am doing something wrong but I don't think so...
We're using Laravel 5.6 and I am using Composer 1.9.0
The composer.json file:
"require": {
"php": "^7.1.3",
"ext-gd": "*",
"aws/aws-sdk-php": "^3.55",
"bacon/bacon-qr-code": "1.0.3",
"barryvdh/laravel-dompdf": "^0.8.3",
"doctrine/dbal": "^2.8",
"fideloper/proxy": "~4.0",
"fzaninotto/faker": "^1.4",
"guzzlehttp/guzzle": "^6.3",
"jenssegers/agent": "^2.6",
"laravel/framework": "5.6.*",
"laravel/homestead": "^7.3",
"laravel/tinker": "^1.0",
"league/csv": "^9.0",
"league/flysystem-aws-s3-v3": "^1.0",
"maatwebsite/excel": "^3.1",
"plivo/php-sdk": "^4.0",
"pragmarx/google2fa-laravel": "^0.2.0",
"sentry/sentry-laravel": "^0.10.0",
"simplesoftwareio/simple-qrcode": "~2",
"spatie/laravel-permission": "^2.12"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"beyondcode/laravel-dump-server": "^1.2",
"beyondcode/laravel-query-detector": "^1.0",
"filp/whoops": "^2.0",
"imanghafoori/laravel-anypass": "^1.0",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
Anyone have been through this sometime?
You can't update to the latest version because it's incompatible with Laravel 5.6
From the package's readme
Laravel Version Compatibility
Laravel 4.2.x is supported until version 0.8.x
Laravel <= 5.7.x on PHP <= 7.0 is supported until version 0.11.x
Laravel >= 5.x.x on PHP >= 7.1 is supported in the most recent version
Laravel >= 6.x.x on PHP >= 7.2 is supported in the most recent version
So you have to update Laravel as well if you want to update the package
Hope this helps
Looks like you can't update to the latest version, but you can update to 0.11.x if you change your composer.json entry to
"sentry/sentry-laravel": "^0.11.*"
I am upgrading my laravel project to 5.6. current version is 5.5.44. my composer file is as below. when i run composer update, it does nothing but showing Loading composer repositories with package information Updating dependencies (including require-dev) in the terminal for hours. what would be the issue for this?
"require": {
"php": ">=7.1.3",
"fideloper/proxy": "~4.0",
"laravel/framework": "5.6.*",
"laravelcollective/html": "^5.7",
"nesbot/carbon": "^1.33",
"maximebf/debugbar": "~1.15.0",
"barryvdh/laravel-debugbar": "^3.2",
"yajra/laravel-datatables-oracle": "~6.0",
"artem-schander/l5-modular": "dev-master",
"intervention/image": "^2.3",
"hesto/multi-auth": "^1.0",
"laravel/cashier": "~7.0",
"laravel-notification-channels/twilio": "^2.0",
"guzzlehttp/guzzle": "^6.2",
"laravel/socialite": "2.0.*",
"barryvdh/laravel-snappy": "^0.4.3",
"psr/simple-cache": "^1.0",
"psr/container": "^1.0",
"phpoffice/phpexcel": "^1.8",
"phpoffice/phpspreadsheet": "^1.6",
"doctrine/inflector": "^1.3",
"symfony/translation": "^4.2"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "^7.1.5",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"filp/whoops": "~2.0"
},
$ php artisan --version
Laravel Framework 5.5.44
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
try removing the abandoned package:
"phpoffice/phpexcel": "^1.8",