*/ class ContactFeedItemFactory extends Factory { protected $model = ContactFeedItem::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'author_id' => User::factory(), 'contact_id' => Contact::factory(), 'action' => ContactFeedItem::ACTION_NOTE_CREATED, 'description' => $this->faker->word(), ]; } }