dwijitsolutions/laraadmin

ErrorException in Builder.php line 1185:

Opened this issue · 2 comments

count(): Parameter must be an array or an object that implements Countable

@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

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);
}