eriktisme said:
$data->getCurrentPage();
@eriktisme, this is when I need to get the current page.. I'm asking about how it set it
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);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community