I am creating a tag factory, and I want to it to either generate a project_tag_id or a gobal_tag_id but not both
return [
'project_card_id' => ProjectCard::inRandomOrder()->first()->id,
'user_id' => User::inRandomOrder()->first()->id,
// to genreate project_tag_id or global_tag_id but not both
'project_tag_id' => ProjectTag::inRandomOrder()->first()->id,
'global_tag_id' => $this->faker->numberBetween(1,5),
];
Any help or insight on this would be much appreciated