*/ class ContactTaskFactory extends Factory { protected $model = ContactTask::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'contact_id' => Contact::factory(), 'author_id' => User::factory(), 'author_name' => $this->faker->name, 'label' => $this->faker->sentence(), 'completed' => false, 'due_at' => $this->faker->dateTimeThisCentury(), 'uuid' => $this->faker->uuid, ]; } }