JWT Rule

Validate a JSON Web Token

114k Downloads / Month

Open Source MIT License

public Intervention\Validation\Rules\Jwt::__construct()

The value under validation must be a in format of a JSON Web Token.

Parameters

none

Example

use Intervention\Validation\Rules\Jwt;

$validator = Validator::make($request->all(), [
    'attribute-key' => new Jwt(),
]);
Edit