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方法不存在
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我也碰到这问题,不知如何解决?Fatal error: Class 'app\admin\model\Collection' not found in E:\PHPWAMP_IN3\wwwroot\qiye\application\admin\model\Category.php on line 39