Lower Case Rule

Validate a String in Lower Case

117k Downloads / Month

Open Source MIT License

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

The given value must be all lower case letters.

Parameters

none

Example

use Intervention\Validation\Rules\Lowercase;

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