Composer无法安装tymon / jwt-auth

Please assist, composer could not install tymon/jwt-auth:0.5.*

I had type :

composer require tymon/jwt-auth:0.5.*

i also tried to add the ff in projects composer.json:

    require {
....
"tymon/jwt-auth": "dev-master", 
....

}

and "tymon/jwt-auth": "0.5.*" respectively

Plase note : I am new to laravel ...

I found a (temporary) solution.
To get Laravel 5.8 compatibility, perform:

composer require tymon/jwt-auth ^1.0.0-rc.4.1

See discussion in this Github issue.

You may get a 0.5 version by a simple : composer require tymon/jwt-auth

To specify from 0.5, you may use composer require tymon/jwt-auth:^0.5

To install this package you will need:

Laravel 4 or 5 (see compatibility table)
PHP 5.4 +

Install via composer - edit your composer.json to require the package.

"require": {
    "tymon/jwt-auth": "0.5.*" 
}

Then run composer update in your terminal to pull it in.

The installation is there https://github.com/tymondesigns/jwt-auth/wiki/Installation There is nothing said about dev-master, try with 0.5.*

To install the tymon/jwt-auth package in PHP laravel, one should follow the following steps:

Composer.json require should be like this:

"require": {
       "php": ">=5.5.9",
       "laravel/framework": "5.1.*",
       "tymon/jwt-auth": "0.5.*"
   },

Then in config/app.php put the following in the providers array:

Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class

Then in the aliases array in the config/app.php add the following

'JWTAuth'   => Tymon\JWTAuthFacades\JWTAuth::class,
'JWTFactory' => Tymon\JWTAuthFacades\JWTFactory::class

Then type the following command:

php artisan vendor:publish

Note: Various tutorial will suggest you the following php artisan vendor:publish --provider="Tymon\JWTAuthProviders\JWTAuthServiceProvider" but befor that try the above command ie without --provider and it will work

Then type:

php artisan jwt:generate

After this step you can verify the generated key in app/config/jwt.php as mentioned below:

'secret' => env('JWT_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'),