MVS Blog

Insights, Trends, and More: MVS Blog

Laravel 5 Custom Pagination

Custom Pagination 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

 

Top Clutch Development Company India 2022 Award
Top Web Development Company 2022
Image
MVS ISO/IEC 27001 Information security management systems Certification
MVS Microsoft Certified: Power BI Data Analyst