shacall2's avatar

Pagination buttons not showing

I'm a bit perplexed with this. I've done pagination on 2 other sites of mine, without any issues (those were Laravel 5.1). This site is running Laravel 5.2.

Pagination is working properly, but not showing the buttons. I assumed the buttons were being rendered from bootstrap.css, but I couldn't locate it. Right now, the pagination links are text only (<< 1 2 3 4 >>)…no buttons.

Here's the DB query I'm running in my controller:

$numlist = DB::table('numbers')
                ->where('closed', 'f')
                ->orderBy('id')
                ->paginate(10);

And in my blade view:

{!! $numlist->appends(['oc' => '1'])->render() !!}`

Any ideas why my pagination buttons aren't showing up?

0 likes
1 reply
shacall2's avatar

Well, I figured it out. Sorry for the panic attack. My previous two sites were using bootstrap 3. This site is using bootstrap 4. The bootstrap.css file in bootstrap 4 (for pagination) is different than in bootstrap 3. Once I figured this out, I updated the class I'm using and it all renders properly.

1 like

Please or to participate in this conversation.