ErrorException in Builder.php line 1185:
Opened this issue · 2 comments
shammas123 commented
count(): Parameter must be an array or an object that implements Countable
leopinzon commented
@shammas123 Hi there. Check your PHP version, this error usually happens in PHP 7.2, that's why it isn't supported (yet). Try using PHP 7.1
jarielfloriano commented
This error is caused by the PHP version.
Modify line 1185 of the Builder.php file
$originalWhereCount = count ($ query-> wheres);
to
$originalWhereCount = 0;
if (is_array ($ query-> wheres) || is_object ($ query-> wheres)) {
$originalWhereCount = count ($ query-> wheres);
}