title: Laravel Validation - How to check if a value exists in a given array?
body: <p>So, okay i tried a lot of rules from validation docs but all give me same error saying</p>
  
  <blockquote>
    <p>Array to string conversion</p>
  </blockquote>
  
  <p>Here is how I add the array:</p>
  
  <pre><code>$this-&gt;validate($request,[
                  'employee' =&gt; 'required|in:'.$employee-&gt;pluck('id')-&gt;toArray(),
              ],[
                  'employee.in' =&gt; 'employee does not exists',
              ]);
  </code></pre>
  
  <p>Any hint on how to achieve this?</p>
  
  <p><strong>i created a custom validator</strong> but still passing array seems to be not possible</p>