Please format your code by adding ``` on the line before and after it.
How are you using this paginator?
Hello Laravel Developers,
I have been using the following Pagination Helper to modify the built-in pagination method, but unfortunately this doesn't seem to work with Multiple Pagination Instance in a Single Page (2 paginations in 1 page).
public static function paginate($items, $perPage = 15, $path = '')
{
$options = [
'path' => $path
];
$page = Paginator::resolveCurrentPage();
return new LengthAwarePaginator($items->forPage($page, $perPage), $items->count(), $perPage, $page, $options);
}
Looking forward to someone solve the issue.
Please or to participate in this conversation.