Level 17
Nah don't use js for that, you can customize the pagination views :
https://laravel.com/docs/5.5/pagination#customizing-the-pagination-view
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello Everybody,
I need to add two classes to the ul element of a pagination object (no-margin pagination-sm)
I can easily accomplish this with JS however is this the preferred method?
Nah don't use js for that, you can customize the pagination views :
https://laravel.com/docs/5.5/pagination#customizing-the-pagination-view
Please or to participate in this conversation.