title: Laravel search query with Input array
body: <p>I am a begginer with laravel and i made a search query, and i have tags to search for too, but i dont know how to search for it</p>
  
  <p>Query looks like this</p>
  
  <pre><code>public function post_search()
      {
          $tags = Input::get('tag_id');
  
          $search =  $this-&gt;user
                          -&gt;with('tag')
                          -&gt;where('username', 'LIKE', '%'.Input::get('username').'%')
                          -&gt;where('first_name', 'LIKE', '%'.Input::get('first_name').'%')
                          -&gt;where('last_name', 'LIKE', '%'.Input::get('last_name').'%')
                          -&gt;where('group_id', 'LIKE', '%'.Input::get('group_id').'%')
                          -&gt;where('tag_id', 'LIKE', '%'.$tags.'%')
                          -&gt;paginate(22);
  
          $this-&gt;layout-&gt;title   = "Search results";
          $this-&gt;layout-&gt;content = View::make("home.results")
                                 -&gt;with('users', $search);
  
      }
  </code></pre>
  
  <p>And the tag_id input returns the following</p>
  
  <pre><code>array(5) {
    [0]=&gt;
    string(2) "20"
    [1]=&gt;
    string(1) "1"
    [2]=&gt;
    string(1) "3"
    [3]=&gt;
    string(1) "2"
    [4]=&gt;
    string(2) "15"
  }
  </code></pre>
  
  <p>Could please someone give me a hint how i can implement the tags in my search?</p>
  
  <p>Thank you</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am getting this error with tags</p>
  
  <pre><code>Array to string conversion
  </code></pre>