Based on this documentation. https://laravel.com/docs/8.x/pagination#introduction
to make pagination in laravel views along with parameters. I use this script.
@php | |
$first = 0; | |
$end = 0; | |
@endphp | |
@foreach($datas as $key=> $data) | |
{{ $key+ $datas->firstItem() }} | |
@php | |
$first = $datas->firstItem(); | |
$end = $key + $datas->firstItem(); | |
@endphp | |
@endforeach | |
{!! $first !!} - {!! $end !!} From {!! $datas->total() !!} Data | |
{!! $datas->appends(request()->query())->links() !!} |
Top comments (0)