Laravel yield attribute : <p>I'm trying to set an attribute using <strong>@yield</strong> and <strong>@section</strong>, but how?
I tried to use</p>

<pre><code>&lt;html @yield('mainApp')&gt;
</code></pre>

<p>and</p>

<pre><code>@section('mainApp','id="myid"')
</code></pre>

<p>but it returns <strong>id=&amp;quot;myid&amp;quot;</strong> instead of <strong>id="myid"</strong></p>

<p>I know that I can manage it with a default <em>id</em> but I don't like this way, and also what if I need to use a custom attribute?</p>
