locale file & thank api

This commit is contained in:
xiaomlove
2022-02-21 00:14:52 +08:00
parent 3a357f1534
commit 7409e90875
14 changed files with 60 additions and 8 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ class CommentController extends Controller
{
$torrentId = $request->torrent_id;
$with = ['create_user', 'update_user'];
$comments = Comment::query()->with($with)->where('torrent', $torrentId)->paginate();
$comments = Comment::query()
->with($with)
->where('torrent', $torrentId)
->whereHas('create_user')
->paginate();
$resource = CommentResource::collection($comments);
$resource->additional([
'page_title' => nexus_trans('comment.index.page_title'),