ErrorException Invalid argument supplied for foreach() in laravel code example
Example: invalid argument supplied for foreach()
<?php
if (is_array($array) || is_object($array))
{
foreach ($array as $row)
{
...
}
}
?>
<?php
if (is_array($array) || is_object($array))
{
foreach ($array as $row)
{
...
}
}
?>