2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel5.6で php artisan jwt:generate が失敗する

Last updated at Posted at 2018-04-10

QiitaでLaravel5.4の記事を見ながらLaravel5.6でtymon/jwt-auth試そうとしたらハマった。
php artisan jwt:generateを叩くとエラーを吐く。

公式ドキュメントを漁ったら先に進めた。

http://jwt-auth.readthedocs.io/en/develop/laravel-installation/
https://github.com/tymondesigns/jwt-auth/wiki

バージョンが違った

Laravel5.6系だと1.0.*を使わないといけない。
ここが最初0.5系になっていたので直した。

composer.json
"tymon/jwt-auth": "1.0.*"
composer update

コマンドが変わってた

generateからsecretに変わった(?)っぽい。

php artisan jwt:secret
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?