• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.