Filled validation?

how do I apply a validation to a field only when it is present?

https://laravel.com/docs/5.7/validation#rule-filled

Hi!

Just don’t specify it as required

const rules = {
  // It can be not present or email, can't be number etc
  email: 'email',
}
1 Like