title: Laravel Blade: pass array as parameter to yield section
body: <p>i would like to pass an array as parameter from my controller to the blade template.</p>
  
  <p>My controller looks like this:</p>
  
  <pre><code>$myArray = array('data' =&gt; 'data');
  return View::make('myTableIndex')
      -&gt;nest('myTable', 'my_table_template', $myArray)
  </code></pre>
  
  <p>In my blade template i've got a yield like this:</p>
  
  <pre><code>@yield('myTable', $myArray)
  </code></pre>
  
  <p>But i've get the error:</p>
  
  <pre><code>Error: Array to string conversion
  </code></pre>
  
  <p>That's because the yield function only accepts strings, right?</p>
  
  <p>Background is:
  I want a table template which i can use dynamically for multiple purpose or multiple data, so i can use the same template for multiple tables and just pass the columns and content as array.</p>
  
  <p>How can i pass an array to my yield section?</p>