Laravel memeriksa pagination di blade
@if ($items->hasPages())
<div class="pagination-wrapper">
{{ $items->links() }}
</div>
@endif
Yucky Yak
@if ($items->hasPages())
<div class="pagination-wrapper">
{{ $items->links() }}
</div>
@endif
/**
* AppServiceProvider.php
*/
use Illuminate\Pagination\Paginator; // Don't forget this
public function boot ()
{
Paginator::useBootstrap(); // Add this
}
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::useBootstrap();
}
"Showing {{ $products->firstItem() }}–{{ $products->lastItem() }} of {{ $products->total() }} results"