Let's go for custom rule ;)
Validation - required_without field and other field must be empty
Not sure how to do a "required_without:somefield" but require that somefield to be empty if the field is set...
I have two fields that need to be one OR the other. I'm using the required_without but it allows both fields to be set (which I don't want). Using Laravel 5.
Guessing I'll have to make my own validation rule (empty_with:somefield) but just wondering if someone spotted something I didn't think of.
Example:

I wish this was in by default but not sure if Taylor would put this in since it's probably not used a lot.
Rule
empty_when:field,field2,...
The field under validation must be empty when these fields aren't. Useful for doing one field OR the other, not both.
Added a new service provider and extended validator.
$this->app['validator']->extend('empty_when', function ($attribute, $value, $parameters)
{
foreach ($parameters as $key)
{
if ( ! empty(Input::get($key)))
{
return false;
}
}
return true;
});
Please or to participate in this conversation.