You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'first_name,last_name' => 'required:Name is required|not_null:Name can not be null|string:Name should be in string',
117
121
'email' => 'required:Email is required|not_null:Email can not be null|email:Please enter valid email address',
118
122
'gender' => 'required:Gender is required|not_null:Gender can not be null|in:Please select valid gender'
@@ -121,7 +125,7 @@ $validator->rules([
121
125
```
122
126
123
127
### Validate Data
124
-
Using validator we can validate form-data, array, object and json data. we validate data using `validate` method. if all data is valid then it will return `true` otherwise it will return `false`.
128
+
Using validator we can validate html form-data, array, object and json data. Validator validate data according to rules. It will return `true` if all the data are valid, otherwise it will return `false`.
0 commit comments