How to add an attribute to an EAV entity type?

Use the \Magento\Eav\Setup\EavSetup::addAttribute() method to add an attribute to an EAV entity type (product, catalog, customer, address, order, invoice, shopment, credit memo):

Usage examples













See also: