Laravel 5.1 Pretty Pagination URL

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on StumbleUponEmail this to someone

I’m currently working on┬áLaravel 5.1 websites and need some modification to laravel pagination. So in this post we will create laravel 5.1 pretty pagination URL. This steps will produce http://yourdomain.com/section/page/2 pretty pagination url

Add Paginator to your Controller.php

Include your paginator view template to your main.blade.php view

Next is to create pagination.blade.php view to be included in your main view

The last but crucial, don’t forget to create your route

 

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on StumbleUponEmail this to someone
  • Eury

    This article really helped me a lot , thanks.