how to check the iterations in laravel code example Example: foreach in laravel foreach ($users as $user) { // stuff here }