Previous exceptions Invalid argument supplied for foreach() (0) - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, January 27, 2022

Previous exceptions Invalid argument supplied for foreach() (0)

I have this problem in my webpage, any can help me please. I only have this error when i add cities in my web.

addLoop($__currentLoopData); foreach($__currentLoopData as $key => $zone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> currentPage() - 1)*$zones->perPage()); ?> name); ?>
                    </td>
                    <td>
                        <?php $__currentLoopData = json_decode($zone->cities); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city_id): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="badge badge-inline badge-md bg-soft-dark mb-1"><?php echo e(App\Models\City::find($city_id)->name); ?></span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </td>
                    <td>
                        <?php echo e(format_price($zone->standard_delivery_cost)); ?>

                    </td>
                    <td>
                        <?php echo e(format_price($zone->express_delivery_cost)); ?>


source https://stackoverflow.com/questions/70868277/previous-exceptions-invalid-argument-supplied-for-foreach-0

No comments:

Post a Comment