Closed kenzotenma016 closed 4 years ago
When you enable server side pagination VoyagerBaseController should pass to the view $dataTypeContent
as Illuminate\Pagination\LengthAwarePaginator
that has total method.
Can you debug starting from here if $getter
is set as paginate
?
https://github.com/the-control-group/voyager/blob/af4f090adb96d043c887bbc8ddad4dd24fbbd7d0/src/Http/Controllers/VoyagerBaseController.php#L46
That's on me. Really sorry about that. I completely forgot that I was overriding the browse.blade.php file for this dataType and had modified $dataTypeContent
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Version information
Description
File: browse.blade.php [ line: 268 ]
Illuminate\Database\Eloquent\Collection $dataTypeContent->total()
Exception Method Illuminate\Database\Eloquent\Collection::total does not existSteps To Reproduce
Steps to reproduce the behavior: