So it seems there is not built in pagination, I'm trying to build my own.
That said, when I use ->query() it gives me the total_count number I need. But when I use ->get() it gives me the model I want (with the relations), but no total count so I can't paginate properly.
Is there a way to get the total count while using get()?
So it seems there is not built in pagination, I'm trying to build my own.
That said, when I use ->query() it gives me the total_count number I need. But when I use ->get() it gives me the model I want (with the relations), but no total count so I can't paginate properly.
Is there a way to get the total count while using get()?