Today, we are install laravel 5.5 and install tymon/jwt-auth package in my laravel 5.5 application. and we are set service providers and aliases also. but when we are try to generate jwt key run by following command.
php artisan jwt:generate
After run above command you can face following error message in terminal.
Then we are search on google then i was realize in laravel 5.5 it was some changes in package configuration. and here i have share solution for it.
Please, install new dev version of tymon/jwt-auth package. this issue resolve in dev package development. so, again run following command for install dev version package.
composer require tymon/jwt-auth:dev-develop --prefer-source
After install dev version package open your config/app.php file and replace old service provider to new like that.
'providers' => [ .... Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class to Tymon\JWTAuth\Providers\LaravelServiceProvider::class ],
After replace service provider then now run following command for generate jwt key
php artisan jwt:secret
This solution is fine work for me. so, we are also share with you.
PHP Count Number of Pages in PDF FileIn this post, I will give you a simple e...
How to Remove an Event Handler in jQueryUse the jQuery off() Method You can s...
Show Image Preview Before Upload In jQuery Bootstrap ExampleToday, Laravelcode share one helpfull tu...
How to detect if enter key is pressed in a text input field using jQueryUse the keypress event To check wheth...
How to remove elements from DOM in jQueryUse the jQuery remove() method You ca...