【发布时间】:2021-02-26 10:41:36
【问题描述】:
这是我的循环。打印多条记录以及日期/时间列
@foreach($tableData as $i)
<tr>
<th scope="row">{{$i->name}}</th>
<td>{{$i->duration}}</td>
<td>{{$i->friendsAmount}}</td>
<td>{{$i->time)}}</td>
</tr>
@endforeach
这会打印在时间列下
2020-11-14 19:42:00
我只希望它显示时间
19:42:00
【问题讨论】:
标签: php mysql laravel foreach eloquent