jeudi 12 avril 2018

Laravel blade can't print double curly brackets

I want to print double curly brackets from a Laravel blade template. Here is what I've tried so far and failed:

@

{!! '{{ n }}' }}

@php echo ''; @endphp

@php echo '{{ n }}'; @endphp

Weirdly, when I try any of the above there is no error it just displays an empty page.

I am using Laravel 5.6, I've also tried googling but no solution worked.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire