How to render a string using a Laravel pattern template

How can I display a string containing blade syntax?

View::render('{{$var}}')->with('var', $var); // Like this for Example 
+6
source share
1 answer

I believe that this is what you are looking for

https://github.com/TerrePorter/StringBladeCompiler

This package allows you to compile blade strings.

+1
source

Source: https://habr.com/ru/post/989566/


All Articles