midascodebreaker's avatar

Customize pagination {!! $var->links() !!}

How Can i Create a Custom Pagination

and use my own html and css for pagination

coz if i just use the helper method

i dont know how to change the pagination html and css

thanks

0 likes
1 reply
RoboRobok's avatar

links() method accepts one argument implementing Illuminate\Contracts\Pagination\Presenter contract. You can read the docs or, even better, the source code. With this presenter, you can display pagination in any way you like. You can still achieve quite a lot with CSS tweaks alone though.

Please or to participate in this conversation.