Form Validation Allowing Empty Strings To Be Stored Instead of Null |
Sorry, I think I deleted them accidentally when editing my post. Here's the rules and messages again. Still having the problem.
If the JSON doesn't contain name and email, I want it to throw a required error. PHP Code: protected $validationRules = [ |
Messages In This Thread |
Form Validation Allowing Empty Strings To Be Stored Instead of Null - by viewfromthenorth - 10-07-2019, 07:34 PM
RE: Form Validation Allowing Empty Strings To Be Stored Instead of Null - by kilishan - 10-07-2019, 07:53 PM
RE: Form Validation Allowing Empty Strings To Be Stored Instead of Null - by viewfromthenorth - 10-07-2019, 08:00 PM
|