From 454c271477539025323a19ab3b2f95a048ee3951 Mon Sep 17 00:00:00 2001 From: alihardan Date: Sat, 30 Sep 2023 04:49:32 +0330 Subject: [PATCH] update GameController --- app/Http/Controllers/GameController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/GameController.php b/app/Http/Controllers/GameController.php index d2d6974..dca2d73 100644 --- a/app/Http/Controllers/GameController.php +++ b/app/Http/Controllers/GameController.php @@ -69,7 +69,7 @@ public function websiteIndex(Request $request) } public function websiteShow($slug) { - $game = Game::with(['producers', 'publishers', 'contributes:id,user_id,time,contributable_type,contributable_id,contribute,sort', 'contributes.user:id,name'])->where('slug', $slug)->firstOrFail(); + $game = Game::with(['producers:id,title_en,title_fa', 'publishers:id,title_en,title_fa', 'contributes:id,user_id,time,contributable_type,contributable_id,contribute,sort', 'contributes.user:id,name'])->where('slug', $slug)->firstOrFail(); $tgfiles = TGFile::whereIn('file_unique_id', $game->tgfiles)->get(['file_name', 'file_size', 'date']); $game->tgfiles = $tgfiles->toArray(); return $game;