I solved this with
Entry::skip($startOffset)->take($limit)->get()->filter(
function($item) {
return $item->prize_id != null;
}
)->count();
what I needed to do was filter the collection returned from the limited set of results
it would be handy if whereNotNull
etc existed on Collections!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community