Don't execute directive

Cobs posted 8 months ago

Hello guys, Well it could sounds stupid but.. how to DO NOT execute directive in a blade template ?

Let's say i want to print "@yield" in my template. how to do ? I tried this :

  • {!! @yield !!}
  • @{{ @yield }}
  • @php echo "@yield" @endphp

but none work. any idea ?

Tobias van Beek replied 8 months ago Solution

You can use @@yield

Cobs replied 8 months ago

looks good to me, thanks

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us