Support the ongoing development of Laravel.io →
posted 8 years ago
Views
Last updated 2 years ago.
0

You will need to go the extra mile and write out the links yourself into another blade file. Then instead of doing $data->links() you will need to include that file.

Take a look for the following function calls you have available to you $data->previousPageUrl() and $data->nextPageUrl()

You can see an example at https://laracademy.co/videos/laravel-5-intermediate-series/laravel-pagination yes It is a video, but also free to watch, start around the 12 minute mark

0

Oh okay. I was reading the docs but turns out I was reading the 5.3 docs.

So in 5.3 we'll be able to pass it like it did. https://laravel.com/docs/5.3/pagination#customizing-the-pagination-view

So until then, I'll do it your way! Thank you very much.

0

:) No worries, 5.3 just came out today so there are a lot of improvements, and the paginator was one of them :D

0

Oh, it came out today? This might be a stupid question but how do I upgrade to 5.3? I assume there is some composer command so I don't have to manually re-download all the stuff.

0

It can take 3 hours to upgrade if you want :P

https://laravel.com/docs/5.3/upgrade

You might need to tell you composer.json file to look for laravel 5.3.* instead of 5.2.* then do a composer update

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ecaz ecaz Joined 23 Aug 2016

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.