Laravel 5.6 + JWT (json web token)

Asked

Viewed 209 times

0

Good afternoon to all,

I am developing an API in Laravel and intend to use JWT(Json web Token) to perform authentication and token management.

I read the documentation on GITHUB, but did not understand what would be its latest and stable version for LARAVEL 5.6.

I know that by default JWT uses the Model USER to perform the management, however I need to create a customized MODEL, I know that in version 0.5.12 of JWT( without Laravel 5.6 support) there was an option to enable the desired Model. Today I found that in the DEVELOP version there is no longer the option to define the MODEL itself, it would be possible to customize?

References: https://github.com/tymondesigns/jwt-auth

1 answer

0

Being honest in this new version I don’t know if this would work, but it doesn’t hurt to try/(ツ)

Config::set('jwt.user', seuModel::classe);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.