Default values for Laravel 5.4+ blades new components? : <p>Laravel 5.4+ allows for components of the following structure:</p>

<pre><code>&lt;div class="alert alert-{{ $type }}"&gt;
    &lt;div class="alert-title"&gt;{{ $title }}&lt;/div&gt;
    {{ $slot }}
&lt;/div&gt;
</code></pre>

<p>Which are called like:</p>

<pre><code>@component('alert', ['type' =&gt; 'danger'])
    @slot('title') 
        oh no 
    @endslot
    Foo
@endcomponent
</code></pre>

<p>Is there a shorthand or blade marker to set default values for the variables passed in?</p>

<p>For example, in the above, if I don't pass in "type" I get a <code>undefined variable</code> error. I could do something like:</p>

<pre><code>&lt;div class="alert alert-{{ isset($type) ? $type : 'default' }}"&gt;
</code></pre>

<p>But the above feels verbose, especially if the variable is used in multiple spots. </p>
