simedkom/database/factories/ContentRecapFactory.php

35 lines
834 B
PHP

<?php
namespace Database\Factories;
use App\Enums\Channel;
use App\Enums\ContentType;
use App\Enums\SocialMedia;
use App\Models\Classification;
use App\Models\ContentRecap;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<ContentRecap>
*/
class ContentRecapFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'classification_id' => Classification::factory(),
'title' => fake()->sentence(),
'link' => fake()->url(),
'posting_date' => fake()->date(),
'type' => ContentType::FOTO,
'channel' => Channel::WEBSITE,
'social_media' => SocialMedia::DISKOMINFO_PURWAKARTA,
];
}
}