0
在我的配置/ locale.php我有一个数组'displayLanguage'其中包含键=>值对 我怎样才能通过这个阵列在刀片中循环? 我曾尝试以下Laravel刀片循环通过配置数组变量
@foreach ({{ Config::get('app.locale.displayLanguage') }} as $itemKey => $itemVal)
{{ $itemKey }}
@endforeach
我得到语法错误,意想不到的“<”。尝试还有一些其他验证循环这个变种,而不通过控制器