Laravel 5 Quick Basic Pagination 2 mins

The guys at Laravel have done a great job and with Laravel 5 is super easy to get Pagination working in 2 mins flat (I promise!). Also the default syntax is Bootstrap (but you can change to custom if you want pretty easily).


In Controller:

In view:

Loop through collection:

Output bootstrap pagination links:


Sam Deering

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *