RavenFaramond's avatar

Simple Pagination ignores link labels

Hey there. I'm using simplePaginate() on a query and render it with no problems but the text for buttons are disregarded. Laravel doesn't pay attention to the pagination.php file in language folders. As I dug deeper, I eventually reached BootstrapThreeNextPreviousButtonRendererTrait which has the getPreviousButton and getNextButton methods. I'm assuming these methods are used by the regular paginate and the simple paginate mutually. The labels for links are defined as follows:

getPreviousButton($text = '«')

which is fine for the regular pagination. But, I'd like to see "Next" and "Previous" labels for my two-button-only pagination. Is there a way to modify the link texts without having to modify the core classes.

0 likes
3 replies
RavenFaramond's avatar

Laravel's Pagination class already outputs a bootstrap compatible HTML. What I am asking is if there's a way to customize the link texts.

jlrdw's avatar
jlrdw
Best Answer
Level 75

Can you not change the CSS to your liking, actually change it in the li tag?

1 like

Please or to participate in this conversation.