From a2ea88beb5f434aa84b2ac759d441b9bafeece38 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Wed, 19 Feb 2020 14:33:35 +0800 Subject: [PATCH] update tutorial --- app/Http/Controllers/User/TutorialController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/User/TutorialController.php b/app/Http/Controllers/User/TutorialController.php index bfcc250b..59f67ffc 100644 --- a/app/Http/Controllers/User/TutorialController.php +++ b/app/Http/Controllers/User/TutorialController.php @@ -52,7 +52,7 @@ class TutorialController extends Controller $tutorial = Tutorial::select(['id', 'title', 'icon']) ->where('show', 1) ->get() - ->groupBy('category'); + ->groupBy('category_id'); $user = User::find($request->session()->get('id')); $response = [ 'data' => [