I have the same problem in laravel 5.1 if I want create a paginator manually. Do you have a solution?
The same happens to me in Laravel 5.0 and I didn't get any solution. I hope someone in here can help!
You'll have to slice you're results before passing them to the Paginator.
When manually creating a paginator instance, you should manually "slice" the array of results you pass to the paginator.
If you're unsure how to do this, check out the array_slice PHP function.
Jasperrr said:
You'll have to slice you're results before passing them to the Paginator.
When manually creating a paginator instance, you should manually "slice" the array of results you pass to the paginator. If you're unsure how to do this, check out the array_slice PHP function. Laravel docs
That worked, thank you!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community