Level 75
With render you get html of your blade file.
$html = view('your-blade-file', compact('yourVariables'))->render();
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is there a good way to get compiled HTML string from blade syntax? I have to try Blade::compileString(), but it compile blade to raw PHP.
Please or to participate in this conversation.