just a little correction, in AuthController.php
function jwt the return value must be
return JWT::encode($payload, env('JWT_SECRET'),'HS256');
in otherwise,when we try to access to a protected route will fail
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
great article thanks for sharing!
just a little correction, in AuthController.php
function jwt the return value must be
return JWT::encode($payload, env('JWT_SECRET'),'HS256');
in otherwise,when we try to access to a protected route will fail