Support the ongoing development of Laravel.io →
Database Eloquent Blade
Last updated 2 years ago.
0

I have the same problem in laravel 5.1 if I want create a paginator manually. Do you have a solution?

0

The same happens to me in Laravel 5.0 and I didn't get any solution. I hope someone in here can help!

0

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

Last updated 9 years ago.
0

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!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

DaneW danew Joined 11 Jun 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.