diff --git a/app/Http/Controllers/Home/IndexController.php b/app/Http/Controllers/Home/IndexController.php index 35e427e..7a2fa8d 100644 --- a/app/Http/Controllers/Home/IndexController.php +++ b/app/Http/Controllers/Home/IndexController.php @@ -42,7 +42,7 @@ class IndexController extends BaseController } } - $data['article_list'] = $res['list']; + $data['article_list'] =collect($res['list'])->toArray(); $data['article_count'] = intval($res['count']); //banner轮播图