Base64 Rule

Validate a base64 encoded string

50.7k 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(), [
    'my-value' => new Base64(),
]);