Support the ongoing development of Laravel.io →
posted 10 years ago
Views
Last updated 2 years ago.
0

I think you would need to still do paginate() on the Eloquent object and also {{ $mymodel->links() }} in the Blade view to show the pagination.

Last updated 2 years ago.
0

what i mean is when i use ->links() if total page is <= 1 the pagination links wont appear

Last updated 2 years ago.
0

Pagination templates show up for >1 pages, so you must tweak one of the templates found in:

vendor/laravel/framework/src/Illuminate/Pagination/views/

and save it somewhere in your app/views

then change pagination config:

// app/config/view.php
...
'pagination' => 'your.view.name';
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alainbelez alainbelez Joined 11 Feb 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.