Lower Case Rule

Validate a string in lower case

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