Skip to content

Commit

Permalink
update GameController
Browse files Browse the repository at this point in the history
  • Loading branch information
alihardan committed Sep 30, 2023
1 parent b82f12b commit 454c271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/GameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 454c271

Please sign in to comment.