laravel 分页和共多少条 加参数的分页链接
<div class="pagers "> <span class="fs pager">共 {{$trades->total()}} 条 </span> {{$trades->render()}} // {{$trades->links()}} </div>
有时候需要在分页链接加查询参数 加这个
<div class="pagers "> <span class="fs pager">共 {{$total}} 条 </span> {!! $paginator->appends(['task_name' => $task_name, 'task_id' => $task_id, 'bus_name' => $bus_name, 'bus_id' => $bus_id, 'type' => $type, 'status' => $status])->render() !!} </div>
也可以在后台传url参数过来到$url中
<div class="page"></div>{{$list->appends($url)->render()}}</div>