update tutorial

This commit is contained in:
Tokumeikoi 2020-02-19 14:33:35 +08:00
parent d969220654
commit a2ea88beb5

View File

@ -52,7 +52,7 @@ class TutorialController extends Controller
$tutorial = Tutorial::select(['id', 'title', 'icon']) $tutorial = Tutorial::select(['id', 'title', 'icon'])
->where('show', 1) ->where('show', 1)
->get() ->get()
->groupBy('category'); ->groupBy('category_id');
$user = User::find($request->session()->get('id')); $user = User::find($request->session()->get('id'));
$response = [ $response = [
'data' => [ 'data' => [