onEachSide in pagination

I’m using Livewire v2 with:

use WithPagination;
protected $paginationTheme = 'bootstrap';

And in my view I have:

{{ $posts->onEachSide(2)->links() }}

I have published the pagination views and I’m using views/vendor/livewire/bootstrap.blade.php

Pagination works fine but it looks like onEachSide is ignored. Whatever number I put in there it always shows a list of all the pages so I’m probably missing something.

3 Likes