JWT Rule
Validate a JSON Web Token
120k Downloads / Month
Open Source MIT License
120k 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.
none
use Intervention\Validation\Rules\Jwt;
$validator = Validator::make($request->all(), [
'attribute-key' => new Jwt(),
]);
Edit