PHP Class GenTux\Jwt\Http\JwtMiddleware

Inheritance: use trait GenTux\Jwt\GetsJwtToken
ファイルを表示 Open project: generationtux/jwt-artisan

Public Methods

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

Private Methods

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

Method Details

__construct() public method

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

handle() public method

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