0
可以在變量上運行Blade引擎嗎?可能在變量上運行Blade?
比方說,我有變量,名爲「$render
」,這等於「@if($something == $something) $(".hello").show(); @endif
」
然後我會運行像「View::make($render);
」。
我想將此功能添加到Minifies JS文件的包中。
可以在變量上運行Blade引擎嗎?可能在變量上運行Blade?
比方說,我有變量,名爲「$render
」,這等於「@if($something == $something) $(".hello").show(); @endif
」
然後我會運行像「View::make($render);
」。
我想將此功能添加到Minifies JS文件的包中。
從我所能找到的the docs以及從我的經驗中,你不能。我想你要找的是@include('some_file')
。 Whic意味着您將始終運行@if語句。