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

cannot install this package in laravel 8.32

Open mouyong opened this issue 3 years ago • 3 comments

Subject of the issue

cannot install this package in laravel 8.32

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel / Lumen
Framework version 5.8.*
Package version 2.*
PHP version 7.4

Steps to reproduce

image

Expected behaviour

can be support laravel 8

Actual behaviour

when use laravel 8, cannot install this package.

mouyong avatar Apr 18 '21 12:04 mouyong

I was able to install the library in a Laravel v8.40 without any issue and use PHP 7.4.13 on a Ubuntu 20.04LTS server. I simply followed this article: https://medium.com/@ripoche.b/create-a-spa-with-role-based-authentication-with-laravel-and-vue-js-ac4b260b882f (on the mentioned Laravel version, 8.40). I used composer require tymon/jwt-auth:dev-develop

I think something goed wrong with tagging the branches/PR's as the dev-develop seems the most recent working version. Which version did you try ?

CodeNinja1337 avatar May 06 '21 06:05 CodeNinja1337

2.0.x-dev

mouyong avatar Jul 06 '21 15:07 mouyong

When execute composer require tymon/jwt-auth:2.0.x-dev --prefer-source with laravel/framework:^8.54 gets an error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires tymon/jwt-auth 2.0.x-dev -> satisfiable by tymon/jwt-auth[2.0.x-dev].
    - tymon/jwt-auth 2.0.x-dev requires illuminate/contracts ^6|^7 -> found illuminate/contracts[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.

The dependencies will be updated??

4EPHblN avatar Oct 05 '21 14:10 4EPHblN