jeudi 19 juillet 2018

Tymon JWTAUTH exclude routes from token

I installed laravel 5.6 and configured tymon jwtauth token.

All working fine and done.

In laravel 5.1 i used this function to exclude function from jwt authentication:

public function __construct() {
    $this->middleware('jwt.auth', ['except' => ['login']]);
}

It's not working in laravel 5.6, any idea? I want to exclide the login function so the user can login, take the token and send it with each request.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire