title: How to create and pass an array of object to Blade's @include?
body: <p>I'm new to Blade, and couldn't find how to do that.</p>
  
  <p>Unfortunately, <a href="https://laravel.com/docs/5.5/blade#including-sub-views" rel="nofollow noreferrer">Blade's documentation</a> doesn't help much, but I've already tried the following:</p>
  
  <pre><code>@include('module.my-component', [
      'param' =&gt; [{
          'x' =&gt;  'A',
          'y' =&gt; false
      }, {
          'x' =&gt; 'B',
          'y' =&gt; true
      }]
  ])
  </code></pre>
  
  <p>As expected, I've got the following syntax error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '{', expecting ']'</p>
  </blockquote>
  
  <p>Does anybody know the correct syntax?</p>