Laravel Blade - Advantage of @slot/@component vs @include? : <p>Laravel 5.4 Blade introduced the concept of components &amp; slots - but I can't see what they add over the traditional @include. As I understand, with component/slots, you do:</p>

<p>In template component-tpl.blade.php:</p>

<pre><code>&lt;div class='container'&gt;
  &lt;h1&gt;{{$slot1}}&lt;/h1&gt;
  &lt;h2&gt;{{$slot2}}&lt;/h2&gt;
&lt;/div&gt;
</code></pre>

<p>Using slots in page template, you do:</p>

<pre><code>@component('component-tpl')
  @slot('slot1')
    The content of Slot 1
  @endslot
  @slot('slot2')
    The content of Slot 2
  @endslot
@endcomponent
</code></pre>

<p>What functionality does that provide over the older:</p>

<pre><code>@include('component-tpl',['slot1'=&gt;'The content of Slot 1',
'slot2'=&gt;"The content of Slot 2"])
</code></pre>

<p>using the exact same 'component-tpl.blade.php' Blade template?</p>

<p>What am I missing?  Thanks for any insights.</p>

<p>Chris</p>
