findById( $subdistrictAreaRepositoryInterface->getRandomId() ); $customerRepositoryInterface->create( (new CustomerAttr) ->setName($faker->unique()->name()) ->setEmail($faker->unique()->email) ->setAddress($faker->address) ->setDateOfBirth($faker->date()) ->setProvinceId($subdistrictArea->subdistrict->city->province_id) ->setCityId($subdistrictArea->subdistrict->city_id) ->setSubdistrictId($subdistrictArea->subdistrict_id) ->setSubdistrictAreaId($subdistrictArea->id) ); } } }