How can I render an string which contains blade syntax?
View::render('{{$var}}')->with('var', $var); // Like this for Example
I believe this is what you are looking for
https://github.com/TerrePorter/StringBladeCompiler
This package allows you to compile blade strings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With