$this->faker->firstName(), ]; } public function cards($count) { $cards = Card::factory() ->count($count) ->state(function (array $attr) { return ['class' => null ]; }); return $this->has($cards); } }