Base64 Rule

Validate a base64 encoded string

72k 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(),
]);