*/ class FeatureFactory extends Factory { /** * The name of the factory's corresponding model. * * @var class-string */ protected $model = Feature::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ Feature::ATTRIBUTE_NAME => fake()->unique()->word(), Feature::ATTRIBUTE_SCOPE => FeatureConstants::NULL_SCOPE, Feature::ATTRIBUTE_VALUE => fake()->boolean(), ]; } }