distinct - paginate
fit-vanson opened this issue · comments
Hi @fit-vanson,
Unfortunately, this topic is quite complex (and annoying). Please remove ->distinct()
and try this instead:
$query = $domain->wallpapers($isBlock)
->where(...)
->getQuery()
->select('wallpapers.*')
->groupBy('wallpapers.id')
->paginate(...);