I have a requirement to remove firstname, lastname as required field from registration page which I can achieve by modifying
eav_attribute table directly
UPDATE 'eav_attribute' SET 'is_required' = 0 WHERE 'entity_type_id' = 1 && 'attribute_code' = 'lastname';
(Similarly I'll update firstname and remove firstname, lastname input field from the phtml file.)
I know modifying the core tables directly is not a good practice. What are alternatives through which I can achieve the above stated requirement?
After reading Modify core tables vs custom tables and joins, I see it's recommended to create a custom table and use joins. Can someone share any example how that is done ?