Laravel News

Custom Pagination Laravel 5

By on October 10, 2016

Custom Pagination Solutions for Laravel 5

@if ($paginator->hasPages() )
<ul class="pagination">
<li class="prev {{ ($paginator->currentPage() == 1) ? ' disabled' : '' }}">
<a href="{{ $paginator->url($paginator->currentPage()-1) }}"><i class="fa fa-step-backward"></i>
</a>
</li>
<li class="next {{ ($paginator->currentPage() == $paginator->lastItem()) ? ' disabled' : '' }}">
<a href="{{ $paginator->url($paginator->currentPage()+1) }}" ><i class="fa fa-step-forward"></i>
</a>
</li>
</ul>
@endif
TAGS
RELATED POSTS

LEAVE A COMMENT

Akhilesh Singh Shrinet
New Delhi, India

My Passion is to create such thing which works automatically. Coding such stuffs is my passion. I always try to learn new things, though my studies are not related to my work but I love it. I learn every things through Google(Thanks to it). As Full Stack Developer I have extensive knowledge of Laravel, AngularJs, Magento, Node.Js, React.Js, Sass/Less