在 Laravel 5.0.27 中,我使用以下代码包含一个带有变量的视图:
@include('layouts.article', [
'mainTitle' => "404, page not found",
'mainContent' => "sorry, but the requested page does not exist :("
])
我出现了以下错误...
FatalErrorException syntax ... error, unexpected ','
我已经排除了错误仅来自于“mainContent”变量字符串中的“(”符号,当我去掉“(”符号时,错误就消失了,一切运行正常。我在文档中找不到任何关于此或类似错误的信息。
请问有人知道这是否是预期行为,还是应该报告此Bug?
非常感谢您的时间!
@component
。 - Alex