trevorpan's avatar

How to hook additional pagination symbols into paginator

Hi ~

I've found a number of posts on how to customize the out of the box pagination but want to see if you have created additional symbols for pagination.

The goal is to leave the basic ❰ 1 2 3 ❱ the bottom of page results but have the below symbols roughly mid page.

Have you done this?

<div class="leftarrow">❰</div> 
<div class="rightarrow">❱</div>

Thank you `

0 likes
4 replies
jlrdw's avatar

I have written guides here on pagination templates. You can write anyway you wish.

trevorpan's avatar
trevorpan
OP
Best Answer
Level 15

@JLRDW - Hi - thank you, I found this: https://laracasts.com/discuss/channels/guides/paginator-another-episode that helped on the <a href , kept trying different routes that would give 404.

<div class="leftarrow"> 
    <a href="{{ $jobs->previousPageUrl() }}">❰</a>
</div> 

<div class="rightarrow">
                          <a href="{{ $jobs->nextPageUrl() }}">❱</a>    
</div>

@snapey , thank you for the link. I'd read those before but didn't understand them. I kept thinking $results - what $results, but now understand it's the $jobs the controller is passing..

moving ahead! Thank you

jlrdw's avatar

Glad the guide helped. I confess I did not write from scratch, just used out of box template and modified as needed.

1 like

Please or to participate in this conversation.