api add page_title

This commit is contained in:
xiaomlove
2021-05-18 02:37:39 +08:00
parent e5a9dc3273
commit 0c136b7743
19 changed files with 964 additions and 43 deletions
@@ -19,6 +19,9 @@ class CommentController extends Controller
$with = ['create_user', 'update_user'];
$comments = Comment::query()->with($with)->where('torrent', $torrentId)->paginate();
$resource = CommentResource::collection($comments);
$resource->additional([
'page_title' => nexus_trans('comment.index.page_title'),
]);
return $this->success($resource);
}