Custom Pagination Laravel 5

Custom Pagination Laravel 5
10 Oct
Custom Pagination Laravel 5 By Admin / 2 Comments

Custom Pagination Laravel 5 solutions Max Vision Solutions



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

Illuminate\Pagination\Paginator Object ( [hasMore:protected] => [items:protected] => Illuminate\Database\Eloquent\Collection Object ( [items:protected] => Array ( ) ) [perPage:protected] => 5 [currentPage:protected] => 1 [path:protected] => https://www.maxvisionsolutions.com/blog/custom-pagination-laravel-5 [query:protected] => Array ( ) [fragment:protected] => [pageName:protected] => page ) 1

Comments

Archives

Recognition of Excellence