SheppardDigital
asked on
Eloquent ORM manual paginator defaults to simple
I'm creating pagination manually for results using Eloquent ORM. The pagination works fine except it's defaulting to display only back and next buttons (simplePaginate()) rather than back, next and page number links.
Here's how I'm generating the pagination;
Is there a way I can ask for the pagination to not be the equivalent of calling 'simplePaginate()'?
Here's how I'm generating the pagination;
$data = new \Illuminate\Pagination\Paginator($allRecipes, $perPage, $page, ["path" => "recipes"]);
Is there a way I can ask for the pagination to not be the equivalent of calling 'simplePaginate()'?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER