How to prevent escaping a blade syntax?

J. Doe :

I wanted to use the helper to set an e-mail address:

Email: contact@{{ request()->getHost() }}

But apparently, @ before {{ is used to escape Blade instructions!

How can we prevent this escaping functionality?

Amit Senjaliya :

You should use @ as a string:

Email: contact{{ '@'. $request()->getHost() }}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=11555&siteId=1