From 853f9e65eeca42cdbe1ddec18058aaa1e89e6c6d Mon Sep 17 00:00:00 2001 From: bill <276957690@qq.com> Date: Tue, 2 Nov 2021 17:16:35 +0800 Subject: [PATCH] 4 --- app/Http/Controllers/Home/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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轮播图