Sunday, March 19, 2017

php laravel - how to pass controller output to view as iframe source

I have a controller which gives output as URL , now I want to pass the output url to view and below is the code.But when I load the view I found that iframe is not loading and the url is showing in the body of the html.

inside controller this is how I am returning the output

 return view('ifr',['name' => $url]);

And this is my view code

<iframe src=></iframe>

Could you please help me with the correct syntax



via Areik

Advertisement