Created
February 7, 2015 10:17
-
-
Save yankchina/7358742a245eafbd0cff to your computer and use it in GitHub Desktop.
php blade 模板中用嵌套循环来实现数组自定义字段输出
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
@foreach ($list_array as $key => $list_item) | |
<div> | |
@foreach ($column_array as $key => $column) | |
{{ $list_item[ $column ]}} | |
@endforeach | |
</div> | |
@endforeach | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment