Laravel 5.5 & Bootstrap 4 Pagination Issues

Published 1 week ago by HFH

I've seen a number of threads regarding the class changes in pagination from BS3 to BS4, but I can't seem to get to the bottom of it on my own app.

Using a simple pagination in my controller with:

$users = DB::table('users')->orderBy('created_at', 'desc')->simplePaginate(5);

And then rendering the pagination buttons as such:

{{ $users->render() }}

Gives me unstyled links, instead of normal buttons.

MustafaAgamey

same issue , any solutions ?

jdunsmore

Can you explain why you're using

{{$users->render()}}

Instead of

{{$users->links()}}

?

skeith22

use

{{ $users->links('vendor.pagination.bootstrap-4') }}

you're welcome

Please sign in or create an account to participate in this conversation.