*/ class SubscriptionChildFactory extends Factory { protected $model = SubscriptionChild::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'amount' => $this->faker->numberBetween(10, 3000), 'name' => $this->faker->words(5, true), ]; } }