Browse Source

update tutorial

Tokumeikoi 5 years ago
parent
commit
a2ea88beb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/User/TutorialController.php

+ 1 - 1
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' => [