Jan 10, 2017
0
Level 1
Validate rule if value not empty?
I want to make a image upload, and validation rule is mimes:jpeg,jpg,png,gif|max:10000 this is ok. but I want don't to validate if value is empty.
So if value is empty I get "Call to a member function save() on null"
How can I disable validation if value is empty? with 'sometimes' or 'present' is the same error...
Please or to participate in this conversation.