Is there any way to compile a blade template from a string?

前端 未结 6 1592
滥情空心
滥情空心 2020-11-27 07:32

How can I compile a blade template from a string rather than a view file, like the code below:

{{ $name }}\';
echo          


        
6条回答
  •  再見小時候
    2020-11-27 07:55

    I'm not using blade this way but I thought that the compile method accepts only a view as argument.

    Maybe you're looking for:

    Blade::compileString()
    

提交回复
热议问题