首先通过控制器将数据库中的代码引入

public function fenye(){

//获取数据库里面的数据

$data=Member::paginate(2);

return view (‘fenye’,compact(‘data’));

}

然后创建路由
Route::get(‘fenye’,‘[email protected]’);

第三步写界面

Laravel框架数据库分页管理
通过使用表格标签将数据库规范 使用foreach循环写入数据,此处根据自己数据库的内容建立相对数量的表格

css样式使用的别人的

原作者网址:

https://www.jb51.net/article/179150.htm

Laravel框架数据库分页管理

完成✌

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2022-02-26
  • 2021-05-24
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案