Despite the fact that the whole Magento team puts huge efforts to persuade developers use best practices in developing for Magento, the Internet is still full of harmful information on how to create Magento 2 custom attributes using deprecated functionality or calling ObjectManager directly, what is even worse.

In this tutorial, I'm going to give you some tips on how to do it in a way not to break Magento core principles and get clean and maintainable code.

Read more ...