📜  laravel $loop interation - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.675000             🧑  作者: Mango

代码示例1
$loop->iteration =>    The current loop iteration (starts at 1).
  
@foreach ($users as $user)
{{$loop->iteration}}  
@endforeach