![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Laravel
牍中玉
在代码的世界里不断的随风漂流
展开
-
PHP分类树型结构
//生成树状结构/** * @param $arr 代处理成树状结构的数据数组 * @param int $pid pid,默认从0开始 * @param string $id 设计表的ID * @param string $pname 设计表的PID * @param string $child 生成树状结构的子容器 * @return array */protected f...原创 2018-10-29 10:18:00 · 1262 阅读 · 0 评论 -
laravel查看sql语句
DB::connection()->enableQueryLog();/这里是执行sql的语句/DD(DB::getQueryLog()); //返回sql语句原创 2018-11-01 17:02:06 · 512 阅读 · 0 评论 -
获取目录下文件
该方法是取自百度富文本protected function getfiles($path, $allowFiles, &$files = array()) { if (!is_dir($path)) return null; if (substr($path, strlen($path) - 1) != '/') $path .= '/'; ...翻译 2018-11-05 11:22:56 · 148 阅读 · 0 评论