Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0
$data->getCurrentPage();
Last updated 2 years ago.
0

eriktisme said:

$data->getCurrentPage();

@eriktisme, this is when I need to get the current page.. I'm asking about how it set it

Last updated 2 years ago.
0

Pagination Usage

Maybe this will help you.

Inside your query you could do getTo(x) ?

Last updated 2 years ago.
0

SamQuery said:

I have a simple question about laravel pagination, I want to tell the query to take the page number

something like this

$data = DB::table('myTable')->paginate(9)->paged($whatEver);

before you paginate something add Paginator::setCurrentPage(2);

0

Sign in to participate in this thread!

Eventy

Your banner here too?

SamQuery samquery Joined 20 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.