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

This commit is contained in:
Hillel Coren 2017-12-16 19:07:56 +02:00
parent e8d67b31ca
commit 535246916c

View File

@ -206,7 +206,7 @@ class StartupCheck
$orderBy = 'id';
}
$tableData = $class::orderBy($orderBy)->get();
if (count($tableData)) {
if ($tableData->count()) {
Cache::forever($name, $tableData);
}
}