laravel-admin 自定义列表导出

新建一个导出类继承AbstractExporter,添加下列方法 public function setAttr($head, $body, $filename, $sheetname = null){ $this->head = $head; $this- »

laravel-admin 树状节构

1、引用Tree。但是字段写死,建议复制一份出来后修改 2、怎么在同一页面放置两个模块 实例化Row,$row–>column(6,) 3、在列表页面执行添加操作会有问题 建议直接指向自定义方法,成功后执行跳转到列表页 »

laravel service 使用问题1

在对应controller调用service时,例如testController中调用testService,$this->test->调用的方法。 调用其他service时,需要new一个,当 /** * 注入Test对象实例 */ public »

laravel查错

当进行接口测试时出现 Whoops,something went wrong时无法看到具体的出错信息,打断点也只能查看到出错的具体位置而无法定位具体错误时。 这个时候需要查看laravel项目的运行日志,具体位置在\storage\logs\laravel.log。 »