tinker
tinker copied to clipboard
but it conflicts with another require ... but it conflicts with another require
PHP 7.3.21 Laravel 8.17.2
ways to reproduce:
composer create-project --prefer-dist laravel/laravel my-project
composer require botman/tinker
I get error:
$ composer require botman/tinker
Using version ^1.2 for botman/tinker
./composer.json has been updated
Running composer update botman/tinker
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires botman/tinker ^1.2 -> satisfiable by botman/tinker[1.2.0].
- botman/tinker 1.2.0 requires illuminate/support ~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with another require.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Thanks in advance for help.
someone sent a PR to add support for Laravel 8, but no one created the tag. Composer keeps downloading version 1.2 which is only compatible with Laravel <= 7 and that's why you get that error.
@TavoNiievez I'm trying to install it manually then. I've cloned the repo inside vendor/botman folder. But in artisan there is no botman::tinker How can I add it manually? Thanks for helping.
what i did was fork the project, create the 1.3 tag on the fork, and add this to my composer.json:
"require": {
"botman/tinker": "^1.3",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/YourUserName/tinker"
}
],
then you can do a composer update
normally.
@TavoNiievez your fix works, thanks so much. It would be nice if the tag is sorted @mpociot
@TavoNiievez works for me too. Thanks.
@mpociot any chance of getting a new release tagged to make the Laravel 8 support available?
I know it is late but you could do:
composer require botman/tinker:dev-master
Adding master fixes issue
I know it is late but you could do:
composer require botman/tinker:dev-master
Adding master fixes issue
Not late for me, thank you!