Required_if laravel with multiple value
<p>I have a dropdown menu like this:</p>

<pre><code>&lt;select name="selection"&gt;
   &lt;option value="1"&gt;Option 1&lt;/option&gt;
   &lt;option value="2"&gt;Option 2&lt;/option&gt;
   &lt;option value="3"&gt;Option 3&lt;/option&gt;
&lt;/select&gt;
&lt;input type="text" name="stext"&gt;
</code></pre>

<p>I want the following in laravel:</p>

<pre><code>public static myfunction(){
   $input = \Input::only('selection','stext');
   $rule = array(
      'selection' =&gt; 'required',
      'stext' =&gt; 'required_if:selection,2,3',
   );
   $validate = \Validator::make($input,$rule);
}
</code></pre>

<p>But if I select option 1, <code>stext</code> is still required. Why?
How can I fix it?</p>