Base64 Rule

Validate a Base64 Encoded String

98k Downloads / Month

Open Source MIT License

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

The field under validation must be Base64 encoded.

Parameters

none

Example

use Intervention\Validation\Rules\Base64;

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