title: assign $attributes in nested Laravel 7 blade components
body: <p>With Laravel 7, I began to use <strong>View Components</strong>.
  I am trying to pass the <code>$attributes</code> variable from one component to another like:</p>
  <p><strong>x-modal component:</strong></p>
  <pre><code>&lt;div {{ $attributes-&gt;merge(['class' =&gt; 'modal fade']) }}&gt;
     Something great...
  &lt;/div&gt;
  </code></pre>
  <p><strong>x-modal-form component:</strong></p>
  <pre><code>&lt;x-modal {{ $attributes }}&gt;
      Something great too
  &lt;/x-modal&gt;
  </code></pre>
  <p>In this case, I have an <strong>id</strong> property in the x-modal component like:</p>
  <pre><code>&lt;x-modal-form id=&quot;aRandomId&quot; title=&quot;Test&quot;&gt;&lt;/x-modal-form&gt;
  </code></pre>
  <p>But in this case, the id <strong>aRandomId</strong> is not spread to the x-modal component. I have an error &quot;<em>syntax error, unexpected 'endif' (T_ENDIF), expecting end of file</em>&quot; because of <em>{{ $attributes }}</em></p>
  <p>Do you know how to do that?</p>