Sorry, no results were found for this search.

Upper Case Rule

Validate String Formatted in Upper Case

179k Downloads / Month

Open Source MIT License

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

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

The field under validation must be all upper case.

Parameters

none

Example

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

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