jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

Conflicts with another require

Open adiafora opened this issue 4 years ago • 11 comments

Hello. I have an error when installing via composer:

Problem 1
    - Root composer.json requires tymon/jwt-auth ^0.5.12 -> satisfiable by tymon/jwt-auth[0.5.12].
    - tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.

PHP 8, Laravel 8 Other dependencies:

"require": {
    "php": "^8.0",
    "darkaonline/l5-swagger": "^8.0",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "laravel/framework": "^8.54",
    "laravel/sanctum": "^2.11",
    "laravel/tinker": "^2.5",
    "phpunit/phpunit": "^9.3.3",
    "predis/predis": "^1.1"
},
"require-dev": {
    "facade/ignition": "^2.5",
    "fakerphp/faker": "^1.9.1",
    "laravel/sail": "^1.0.1",
    "mockery/mockery": "^1.4.2",
    "nunomaduro/collision": "^5.0"
},

adiafora avatar Oct 08 '21 15:10 adiafora

Same here

RomkaLTU avatar Oct 22 '21 09:10 RomkaLTU

+1

rkpinheiro avatar Nov 06 '21 17:11 rkpinheiro

+1

JhonatanPatrocinio avatar Nov 08 '21 20:11 JhonatanPatrocinio

Has anyone come up with a fix/workaround for this yet?

thenexxuz-zz avatar Nov 13 '21 17:11 thenexxuz-zz

If I remember correctly, I used version 1 instead of 0.x

"tymon/jwt-auth": "^1.0"

RomkaLTU avatar Nov 13 '21 19:11 RomkaLTU

@thenexxuz You can run composer require tymon/jwt-auth --ignore-platform-reqs instead

rkpinheiro avatar Nov 17 '21 12:11 rkpinheiro

Looks like "tymon/jwt-auth": "^1.0" is a good candidate for php8 but it isn't compatible yet. please check https://github.com/tymondesigns/jwt-auth/blob/1.0.2/composer.json

"php": "^5.5.9|^7.0"

rkpinheiro avatar Nov 17 '21 12:11 rkpinheiro

This and other issues are already fixed in this fork: https://github.com/PHP-Open-Source-Saver/jwt-auth

leon0399 avatar Nov 20 '21 00:11 leon0399

using "tymon/jwt-auth": "^1.0" worked for me with PHP 8 and Laravel 8

michug avatar Jan 18 '22 13:01 michug

got similar message, which dissapeared when invoking it this way

composer require tymon/jwt-auth:*

  • PHP: 8.0.11
  • Composer: 2.2.5
  • Laravel Framework: 8.75

catwhocode avatar Feb 03 '22 16:02 catwhocode

For PHP 8, the package version is dev-develop / 1.0.x-dev, which i guess not ready for production.

oayoub84 avatar Feb 08 '22 14:02 oayoub84