Sorry, no results were found for this search.

Lower Case Rule

Validate a String in Lower Case

170k Downloads / Month

Open Source MIT License

Validate lowercase strings in Laravel with Intervention Validation. Ensure all characters are lowercase.

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

The given value must be all lower case letters.

Parameters

none

Example

use Illuminate\Support\Facades\Validator;
use Intervention\Validation\Rules\Lowercase;

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