如果使用 laravel 默认的 paginate 在layui的样式 :
在laravel 页码输出中 可以自定义 模板
自定义 样式:@if ($paginator->hasPages())
{ {-- Previous Page Link --}}
@if ($paginator->onFirstPage())
首页
@else
previousPageUrl() }}" rel="prev"
aria-label="@lang('pagination.previous')"> 上一页
@endif
{ {-- Pagination Elements --}}
@foreach ($elements as $element)
{ {-- "Three Dots" Separator --}}
@if (is_string($element))
{ { $element }}
@endif
{ {-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page =>