How can I render an string which contains blade syntax?
View::render('{{$var}}')->with('var', $var); // Like this for Example
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.