From c7aa75a8baa0757d06fb26a4f7ea6378b451f688 Mon Sep 17 00:00:00 2001 From: alihardan Date: Wed, 26 Jun 2024 00:03:12 +0330 Subject: [PATCH] wip --- app/Http/Resources/GameResource.php | 2 ++ database/migrations/2023_06_21_172643_create_games_table.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Resources/GameResource.php b/app/Http/Resources/GameResource.php index f74236b..20607d4 100644 --- a/app/Http/Resources/GameResource.php +++ b/app/Http/Resources/GameResource.php @@ -24,6 +24,8 @@ public function toArray(Request $request): array $types[] = 'subtitle'; if ($game['iranian'] ?? false == true) $types[] = 'iranian'; + if ($game['collection'] ?? false == true) + $types[] = 'collection'; } $types = array_values(array_unique($types)); diff --git a/database/migrations/2023_06_21_172643_create_games_table.php b/database/migrations/2023_06_21_172643_create_games_table.php index 9f1e817..862ada8 100644 --- a/database/migrations/2023_06_21_172643_create_games_table.php +++ b/database/migrations/2023_06_21_172643_create_games_table.php @@ -18,7 +18,6 @@ public function up(): void $table->json('games'); - $table->json('photos')->nullable(); $table->boolean('selling')->default(false); $table->string('title_fa')->nullable();