I have customer attribute and I would like to this attribute is required in first store, not required in second store.
I have one solution, I would like create second customer attribute in a similar code and in first store use first attribute, in second store use second attribute. But I don't know how to set scope for customer attribute. Any hints?
$installer = $setup; $installer->startSetup();
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]); $customerSetup->updateAttribute( 'customer_address', 'company', 'is_required', true );