This commit is contained in:
Tokumeikoi
2020-04-20 16:07:06 +08:00
parent 50b5ed6b8e
commit 3b486e4693
10 changed files with 109 additions and 25 deletions

View File

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