-
Notifications
You must be signed in to change notification settings - Fork 0
Validation
tanthammar edited this page Sep 4, 2020
·
1 revision
Sets the Laravel validation rules to use for the field.
A string or array of Laravel validation rules.
Example using a string:
Field::make('Name')->input()->rules('required|min:2'),
Example using an array:
Field::make('City')->input()->rules(['required', Rule::in(['Toronto', 'New York']), new MyCustomRule]),