update tutorial

This commit is contained in:
Tokumeikoi
2020-02-19 14:31:02 +08:00
parent 61b31c1925
commit 5154993887
2 changed files with 3 additions and 4 deletions

View File

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