title: Pass an array to Redirect::action in laravel
body: <p>I'm trying to pass an array from a function to another function in laravel. </p>
  
  <p>In my <code>PageController.php</code>, I have</p>
  
  <pre><code>public function show($code, $id){
   //some code
    if(isset($search))
     dd($search);
  }
  </code></pre>
  
  <p>and another function</p>
  
  <pre><code>public function search($code, $id){
  
  //some queries 
  $result = DB::table('abd')-&gt;get();
  return Redirect::action('PageController@show, ['search'=&gt;$search]);
  }
  </code></pre>
  
  <p>But this returns me an error like this: <code>ErrorException (E_UNKNOWN) 
  Array to string conversion</code></p>
  
  <p>I'm using laravel. </p>