$someRows = $queryable->where(function ($row) { return $row['id'] <= 50; });
foreach ($someRows as $row) {
This will load the values
}
This should be evaluated in memory
$filteredRows = $someRows->where(function ($row) { return $row['isActive'] === true; });