update tutorial

This commit is contained in:
Tokumeikoi
2020-02-18 22:28:17 +08:00
parent a56faa7e8e
commit 1b7fc9529f
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class TutorialController extends Controller
public function fetch(Request $request)
{
return response([
'data' => Tutorial::all()
'data' => Tutorial::get()->groupBy('category')
]);
}