From dec1cdbfe6cd9a554736f0bfa40c2bc913c69614 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Thu, 29 Jan 2026 11:20:23 +0700 Subject: [PATCH] refcator(content recaps): change social media list --- database/factories/ContentRecapFactory.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/database/factories/ContentRecapFactory.php b/database/factories/ContentRecapFactory.php index 1b788c3..ace9c04 100644 --- a/database/factories/ContentRecapFactory.php +++ b/database/factories/ContentRecapFactory.php @@ -3,6 +3,7 @@ namespace Database\Factories; use App\Enums\ContentType; +use App\Enums\SocialMedia; use App\Models\Classification; use App\Models\ContentRecap; use Illuminate\Database\Eloquent\Factories\Factory; @@ -33,18 +34,6 @@ public function definition(): array 'LinkedIn', ]; - $socialMediaPlatforms = [ - 'Facebook', - 'Instagram', - 'Twitter', - 'YouTube', - 'TikTok', - 'LinkedIn', - 'WhatsApp', - 'Telegram', - 'Pinterest', - ]; - return [ 'classification_id' => Classification::factory(), 'title' => $this->faker->sentence(4), @@ -52,7 +41,7 @@ public function definition(): array 'posting_date' => $this->faker->dateTimeBetween('-6 months', 'now')->format('Y-m-d'), 'type' => $this->faker->randomElement(ContentType::cases())->value, 'channel' => $this->faker->randomElement($channels), - 'social_media' => $this->faker->randomElement($socialMediaPlatforms), + 'social_media' => $this->faker->randomElement(SocialMedia::cases())->value, ]; }