How to hide page numbers from laravel pagination

Laravel

Posted on 03 Jun 15 by Vickey
  1170



If you have large datasheet and you are showing pagination for these record on your page then it require more space to show pagination with page numbers.

Genearlly we use the below code

$publishedBlogs = Blogs::where('status', '=', 1)->simplePaginate(15);

it will show all pages numbers with previous and next link but for save our webpage space we can show only previous and next links

$publishedBlogs = Blogs::where('votes', '=', 1)->simplePaginate(15);

and for show page links on view we can use

<?php echo $users->render(); ?>

If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com