Laravel 5.6 + JWT (json web token)

0

Good afternoon everyone,

I am developing an API in Laravel and I intend to use the Json web Token to perform the authentication and management of the tokens.

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

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

References: link

    
asked by anonymous 07.05.2018 / 17:32

1 answer

0

Being sincere in this new version I do not know if this would work, but it does not hurt to try ¯ / (ツ) / ¯

Config::set('jwt.user', seuModel::classe);
    
29.07.2018 / 07:57