Support the ongoing development of →
Requests Views Forms
Last updated 2 years ago.
  • add a select to your blog.blade.php with the options you want... i.e. 5,10,20,25 or whatever you want to offer as page sizes
  • add the selected value as a parameter to the route for your BlogController@showPosts($pagesize)
  • change the paginate from the hardcoded 5 to your parameter $posts = Post::paginate($pagesize);
Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

reuf reuf Joined 4 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.