PHP Class GenTux\Jwt\Http\JwtMiddleware

Inheritance: use trait GenTux\Jwt\GetsJwtToken
Afficher le fichier Open project: generationtux/jwt-artisan

Méthodes publiques

Méthode Description
__construct ( JwtToken $jwt )
handle ( Illuminate\Http\Request $request, Closure $next ) Validate JWT token before passing on to the next middleware

Private Methods

Méthode Description
getTokenFromRequest ( Illuminate\Http\Request $request ) : string Get the token from the request

Method Details

__construct() public méthode

public __construct ( JwtToken $jwt )
$jwt GenTux\Jwt\JwtToken

handle() public méthode

Validate JWT token before passing on to the next middleware
public handle ( Illuminate\Http\Request $request, Closure $next )
$request Illuminate\Http\Request
$next Closure