The database data is like this:
I want to use the having statement to get out counts > 0
;
uses paging, so having
is followed by the paging function paginate
But this error is reported:
If I having
is followed by the get()
function, then there is no problem,
You can find the data of counts > 0
What's going on?
Is having
followed by the paging function paginate
a bug?
How to solve it?
paginate source code
paginate takes the fields in the table by default, and there are no fields in the table
counts
的可换成
skip($offset)->take($limit)