PHP/Laravel 8.0:从7.25版升级后,Paginator实例上的链接方法的UI损坏 [英] PHP / Laravel 8.0 : UI of link method on Paginator instance is broken after upgrading from version 7.25

查看:137
本文介绍了PHP/Laravel 8.0:从7.25版升级后,Paginator实例上的链接方法的UI损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将laravel应用程序从7.25切换到8.0.现在,我面临分页问题.

I switched my laravel app from 7.25 to 8.0. Now I am facing pagination problem.

{{ $download->links() }}

在控制器中

$download = Download::paginate(2);

是的,它运行良好,但用户界面现在坏了.

Yes, it is working well but the UI is broken now.

图像错误ui

推荐答案

在Laravel 8中,添加了更多显示分页的选项.

In Laravel 8 more options were added how pagination can be displayed.

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

This instruction https://laravel.com/docs/8.x/pagination#using-bootstrap should help.

这篇关于PHP/Laravel 8.0:从7.25版升级后,Paginator实例上的链接方法的UI损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆