title: How to get value of multi select in Laravel 5.4
body: <p>I am using multi select of <a href="https://adminlte.io/themes/AdminLTE/pages/forms/advanced.html" rel="nofollow noreferrer">adminlte</a>. I wan't to get value of multi select, How can I get it</p>
  
  <p><a href="https://i.stack.imgur.com/1SGbc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1SGbc.png" alt="enter image description here"></a></p>
  
  <p>Output of <strong>dd($request)</strong></p>
  
  <p><a href="https://i.stack.imgur.com/I3BAn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I3BAn.png" alt="enter image description here"></a></p>
  
  <p><strong>VIEW</strong></p>
  
  <pre><code>&lt;select id="leave_status" name="leave_status[]" title="Leave Status" 
    class="form-control select2" multiple="multiple"&gt;       
     &lt;option value="1"&gt;Alabama&lt;/option&gt;
     &lt;option value="2"&gt;Alaska&lt;/option&gt;
     &lt;option value="3"&gt;California&lt;/option&gt;
     &lt;option value="4"&gt;Delaware&lt;/option&gt;
     &lt;option value="5"&gt;Tennessee&lt;/option&gt;
     &lt;option value="6"&gt;Texas&lt;/option&gt;
     &lt;option value="7"&gt;Washington&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>function searchLeaveStatus(Request $request){
         $status = $request-&gt;input('leave_status');
         $status = implode(',', $status);
         $leave_list = LeaveStatus::whereIn('leave_status', $status)-&gt;get();
         dd(leave_list );
     }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <p>Invalid argument supplied for foreach()</p>