CodeIgniter Forums

Full Version: Validating Nullable Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Right now CI4 validation rules fail if the field is empty. So that they only work properly when the field is required. There should be a "nullable" rule to fix this problem. (I believe Laravel does this)

Otherwise null values should not fail validation by default.

See this post
We have the "permit_empty" rule. I think this is what you are looking for.
Yes! Missed it.