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.
what i mean is when i use ->links() if total page is <= 1 the pagination links wont appear
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';
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community