jwt-auth
jwt-auth copied to clipboard
Conflicts with another require
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"
},
Same here
+1
+1
Has anyone come up with a fix/workaround for this yet?
If I remember correctly, I used version 1 instead of 0.x
"tymon/jwt-auth": "^1.0"
@thenexxuz You can run composer require tymon/jwt-auth --ignore-platform-reqs instead
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"
This and other issues are already fixed in this fork: https://github.com/PHP-Open-Source-Saver/jwt-auth
using "tymon/jwt-auth": "^1.0" worked for me with PHP 8 and Laravel 8
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
For PHP 8, the package version is dev-develop / 1.0.x-dev, which i guess not ready for production.