refcator(content recaps): change social media list

This commit is contained in:
Yoga Pangestu 2026-01-29 11:20:23 +07:00
parent a62ea370f4
commit dec1cdbfe6

View File

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