How to avoid clip shortcuts in laravel

I am working on a small CRM system where users need the ability to send emails to other users and download predefined templates. Templates are currently stored in the views / emails / templates folder. Example: new_order.blade.php

Inside the template, there is the following code syntax:

Visit us at: {{{ (isset($isTemplate) && $isTemplate) ? '{{ $offerUrl }}' : $offerUrl }}}

This view works, but it parses a string that should be printed exactly the same as for real PHP code.

Visit us at: <?php echo $offerUrl ?>

Is there any solution for echo click tags?

+4
source share
1 answer

You can use @{{to avoid blade syntax. So you can use

'@{{ $offerUrl }}'
+6
source

All Articles