title: Laravel required_unless validation
body: <p>I have an problem using <code>required_unless</code> validation.</p>
  
  <p>What I want to do is say that <code>building name</code> is required when <code>building number</code> is <strong>empty</strong> or other way round so <code>building number</code> is required when <code>building name</code> is <strong>empty</strong>. At the moment it requires both.</p>
  
  <pre><code>public function rules(Request $request)
  {
      $id = $request-&gt;input('entity_id');
      $entity = Entity::with('address')
          -&gt;find($id);
      $validation = $entity-&gt;id;
      return [
          'name' =&gt; 'required|alpha_special|unique:entities,name,'.$validation.'|min:3|max:30',
          'type' =&gt; 'required',
          'email' =&gt; 'required|email|unique:entities,email,'.$validation,
          'building_name' =&gt; 'alpha|required_unless:building_number,value',
          'building_number' =&gt; 'numeric|required_unless:building_name,value',
          'street' =&gt; 'required|alpha_spaces',
          'town' =&gt; 'nullable|alpha',
          'city' =&gt; 'nullable|alpha',
          'postcode' =&gt; 'required|max:8',
          'telephone' =&gt; 'required|telephone',
          'ical' =&gt; 'nullable|active_url',
      ];
  }
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>&lt;div class="hidden multi form-group{{ $errors-&gt;has('building_name') ? ' has-error' : '' }}"&gt;
                            &lt;div class="building_name_message form-control alert-warning" style="display: none;"&gt;&lt;/div&gt;
                              &lt;label  id="building_name_label" for="building_name" &gt;Building Name&lt;/label&gt;
                              &lt;input  id="building_name" type="text" class="form-field form-control" placeholder="Building name (If applicable)" name="building_name" value="{{ old('building_name') }}"&gt;
                                @if ($errors-&gt;has('building_name'))
                                  &lt;span class="help-block"&gt;
                                    &lt;strong&gt;{{ $errors-&gt;first('building_name') }}&lt;/strong&gt;
                                  &lt;/span&gt;
                                @endif
                            &lt;div class="building_number_message form-control alert-warning" style="display: none;"&gt;&lt;/div&gt;
                              &lt;label  id="building_number_label" for="building_number" &gt;Building Number&lt;/label&gt;
                              &lt;input  id="building_number" type="text" class="form-field form-control" placeholder="Building Number (If applicable)" name="building_number" value="{{ old('building_number') }}"&gt;
                                @if ($errors-&gt;has('building_number'))
                                  &lt;span class="help-block"&gt;
                                    &lt;strong&gt;{{ $errors-&gt;first('building_number') }}&lt;/strong&gt;
                                  &lt;/span&gt;
                                @endif
                                &lt;div class="form-navigation"&gt;
                                  &lt;button type="button" class="previous btn btn-info pull-left"&gt;&amp;lt; Previous&lt;/button&gt;
                                  &lt;button type="button" id="next" class="next btn btn-info pull-right"&gt;Next &amp;gt;&lt;/button&gt;
                                &lt;/div&gt;
                          &lt;/div&gt;
  </code></pre>