分页不正确,箭头都错了。引导4的CSS它没有应用在我的HTML中表的分页中。
我的代码:
<script src="{{ asset('js/app.js') }}" defer></script>
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css" />表:
<table class="table">
<thead>
...
<thead>
<tbody>
@foreach ($products as $product)
<tr>
<th scope="row">{{ ++$i }}</td>
<td>{{ $product->nome }}</td>
<td>{{ $product->preco }}</td>
<td>{{ $product->descricao }}</td>
<td>
...
</td>
</tr>
@endforeach
<tbody>
</table>发布于 2020-10-27 16:57:49
在Laravel 8中,Laravel取消了Bootstrap分页的默认设置
如果您想要使用引导来分页
你需要添加
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::useBootstrap();
}在服务提供商中。
转到AppServiceProvider.php并在引导方法中添加Paginator::useBootstrap();
https://stackoverflow.com/questions/64559255
复制相似问题