Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 703

Laravel : Return text/html as response

$
0
0

In the laravel controller if someone wants to just send html as response and show it in the browser what is the best way to perform this action without any issue.

I want something like:

$html = "<html>-- All html document content --</html>"// to show as html in browser.return $html; 

Viewing all articles
Browse latest Browse all 703

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>