foreach ($res as $k => $v) {
$cate_name = '|--' . $v->cate_name;
$v->$cate_name = str_repeat(' ', $blank) . $cate_name; $result[] = $v;self::getCate($v->id, $result, $blank);
return Collection::make($result)->toArray();报错内容 :collection方法不存在
我也碰到这问题,不知如何解决?Fatal error: Class 'app\admin\model\Collection' not found in E:\PHPWAMP_IN3\wwwroot\qiye\application\admin\model\Category.php on line 39
我也碰到这问题,不知如何解决?Fatal error: Class 'app\admin\model\Collection' not found in E:\PHPWAMP_IN3\wwwroot\qiye\application\admin\model\Category.php on line 39