Sorry, no results were found for this search.

JWT Rule

Validate a JSON Web Token

177k Downloads / Month

Open Source MIT License

Validate JSON Web Token (JWT) format in Laravel with Intervention Validation. JWT structure checks.

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

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

Parameters

none

Example

use Illuminate\Support\Facades\Validator;
use Intervention\Validation\Rules\Jwt;

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