Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anilbaniya's avatar

Iframe in Laravel

What is the way to embbed an iframe in laravel blade? What I want to do is:

0 likes
1 reply
lostdreamer_nl's avatar

Welcome to the forum ;)

Put your code between 2x 3 ` or it wont show ;)

So:

```

<iframe src="{{ $someUrl }}"></iframe>

```

But to answer the question: You'd do it the same as in normal HTML, but if you want to output php variables, you'd use {{ $someVariable }}

1 like

Please or to participate in this conversation.