In Magento 2, You can generate a unique hash token for your custom functionality where you need to pass id or variable as encrypted.
Magento uses this functionality, generate a unique hash token for reset password confirmation link.
If you want to do a generate unique token you need to use Core Magento\Framework\Math\Random class to accomplish your requirement. Continue reading “How to generate unique hash token in Magento 2?”
Magento 2 First name and Last name is default customer entity available in Native Magento. Once you install Magento 2, Customer first name and last name attribute available.
Firstname and Lastname attribute available with Customer and Customer_address entity type.
customer entity type contains attribute used for registration page and customer form related entity.
customer_address entity types used for billing and shipping form of customer. Continue reading “How to set firstname and lastname with minimum two character in Magento 2?”