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, ]; }