Level 15
Morning
Why don't you use Laravel Pagination?
$results = Model::where('something', $something)->paginate(25);
// then in your view you add:
$results->render()
1 like
Hi I have this code to output page links on the page:
{{$properties->links()}}
This outputs a very simple line of numbers. I see on the document something like this:
$results->firstItem();
Where does this $result come form? How can I convert this paginator to a JSON or a class so I can see what I have and be able to manipulate it.
Morning
Why don't you use Laravel Pagination?
$results = Model::where('something', $something)->paginate(25);
// then in your view you add:
$results->render()
Please or to participate in this conversation.