refcator(content recaps): change social media list
This commit is contained in:
parent
a62ea370f4
commit
dec1cdbfe6
@ -3,6 +3,7 @@
|
|||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Enums\ContentType;
|
use App\Enums\ContentType;
|
||||||
|
use App\Enums\SocialMedia;
|
||||||
use App\Models\Classification;
|
use App\Models\Classification;
|
||||||
use App\Models\ContentRecap;
|
use App\Models\ContentRecap;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
@ -33,18 +34,6 @@ public function definition(): array
|
|||||||
'LinkedIn',
|
'LinkedIn',
|
||||||
];
|
];
|
||||||
|
|
||||||
$socialMediaPlatforms = [
|
|
||||||
'Facebook',
|
|
||||||
'Instagram',
|
|
||||||
'Twitter',
|
|
||||||
'YouTube',
|
|
||||||
'TikTok',
|
|
||||||
'LinkedIn',
|
|
||||||
'WhatsApp',
|
|
||||||
'Telegram',
|
|
||||||
'Pinterest',
|
|
||||||
];
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'classification_id' => Classification::factory(),
|
'classification_id' => Classification::factory(),
|
||||||
'title' => $this->faker->sentence(4),
|
'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'),
|
'posting_date' => $this->faker->dateTimeBetween('-6 months', 'now')->format('Y-m-d'),
|
||||||
'type' => $this->faker->randomElement(ContentType::cases())->value,
|
'type' => $this->faker->randomElement(ContentType::cases())->value,
|
||||||
'channel' => $this->faker->randomElement($channels),
|
'channel' => $this->faker->randomElement($channels),
|
||||||
'social_media' => $this->faker->randomElement($socialMediaPlatforms),
|
'social_media' => $this->faker->randomElement(SocialMedia::cases())->value,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user