agahi's avatar
Level 1

Customizing pagination with bootstrap

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.

0 likes
1 reply
Screenbeetle's avatar
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

Please or to participate in this conversation.