Skip to content

Commit

Permalink
fix(feed): 修复动态加载关系名称错误
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Jul 26, 2018
1 parent 280370a commit e95116b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slimkit-plus-feed/src/API2/FeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function hot(Request $request, LikeModel $model, FeedRepository $reposito
->offset($offset)
->orderBy('popular', 'desc')
->get();
$feeds->load(['topocs' => function ($query) {
$feeds->load(['topics' => function ($query) {
return $query->select('id', 'name');
}]);

Expand Down

0 comments on commit e95116b

Please sign in to comment.