Welcome Guest, Not a member yet? Register   Sign In
validation if_exist
#1

Hi,

this rule is correct?
'nom_anterior' => ['rules' => 'if_exist|min_length[2]|max_length[100]'],

I get this when the field isn't value:
The nom_anterior field must be at least 2 characters in length.

Thanks,

Andreu.
Reply
#2

Sorry,

the correct rule for this case is "permit_empty"
Reply




Theme © iAndrew 2016 - Forum software by © MyBB