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
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.
:) No worries, 5.3 just came out today so there are a lot of improvements, and the paginator was one of them :D
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.
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community