Form Validation validating blank values with min_length and valid_email rules |
10-16-2017, 10:19 AM
(This post was last modified: 10-16-2017, 10:36 AM by natanfelles. Edit Reason: . )
To validate input data to the database I will use one rule group to the inserts and other to the updates.
Then, in the inserts always will have a 'required' rule on all the fields. In the updates, I want update only what the user sent (and is supported). Not forcing to send all the data if he do not want to update it. But I need to validate what he sent. The idea is do the HTTP Patch method works. |
Welcome Guest, Not a member yet? Register Sign In |