title: Laravel translate values required_if
body: <p>I am using Laravel version 5.2.45. Currently I have some troubles with translating required_if rule.
  When I am using the required_if,field,value it's printing out the fields value in the error validation message, which in this case is either 1 or 0. that is not very readable.</p>
  
  <p><strong>For example:</strong></p>
  
  <p>Field 1 is required if type is 0</p>
  
  <p><strong>Would like:</strong></p>
  
  <p>Field 1 is required if type is default</p>
  
  <p>Is there any way to translate the values of the rquired_if value/:value?</p>
  
  <p>Controller:</p>
  
  <pre><code>$customerVal = Validator::make($request-&gt;all(), [
          'field1' =&gt; 'required_if:type,0',
          'field2' =&gt; 'required_if:type,0',
      ]);
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@if (count($errors) &gt; 0)
          &lt;div class="modalMsg alert"&gt;
              &lt;ul&gt;
                  @foreach ($errors-&gt;all() as $error)
                      &lt;li&gt;{{ $error }}&lt;/li&gt;
                  @endforeach
              &lt;/ul&gt;
          &lt;/div&gt;
      @endif
  </code></pre>
  
  <p>I can see that Laravel has this in the language section: </p>
  
  <pre><code>'required_if'          =&gt; ':attribute is required when :other are  :value.',
  </code></pre>
  
  <p>So it's basically :value I need to translate(dynamically).
  I have tried below, but that does not replace 0:</p>
  
  <pre><code>'attributes' =&gt; [
  'field1' =&gt; [
              '0' =&gt; 'test'
          ]
  ]
  </code></pre>