Lower Case Rule

Validate a String in Lower Case

114k 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 Illuminate\Support\Facades\Validator;
use Intervention\Validation\Rules\Lowercase;

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