PHP / Laravel 8.0:从 7.25 版升级后,Paginator 实例上链接方法的 UI 损坏

Pra*_*rai 0 pagination hyperlink laravel

我将我的 Laravel 应用程序从 7.25 切换到 8.0。现在我面临分页问题。

{{ $download->links() }}

在控制器中

$download = Download::paginate(2);

是的,它运行良好,但 UI 现在坏了。

图像错误用户界面

Sok*_*nty 6

在 Laravel 8 中添加了更多选项来显示分页。

此说明https://laravel.com/docs/8.x/pagination#using-bootstrap应该会有所帮助。

  • @MartinPfeffer 只需在“AppServiceProvider”中添加“Paginator::useBootstrap();”即可 (2认同)