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