Don't execute directive

Cobs posted 1 year 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 1 year ago Solution

You can use @@yield

Cobs replied 1 year ago

looks good to me, thanks

Sign in to participate in this thread!

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