mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 18:37:31 +08:00
locale file & thank api
This commit is contained in:
@@ -16,8 +16,15 @@ class ThankController extends Controller
|
||||
public function index(Request $request)
|
||||
{
|
||||
$torrentId = $request->torrent_id;
|
||||
$thanks = Thank::query()->where('torrentid', $torrentId)->with(['user'])->paginate();
|
||||
$thanks = Thank::query()
|
||||
->where('torrentid', $torrentId)
|
||||
->whereHas('user')
|
||||
->with(['user'])
|
||||
->paginate();
|
||||
$resource = ThankResource::collection($thanks);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('thank.index.page_title'),
|
||||
]);
|
||||
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user