How to set meta title, keywords, description and page title for a page programmatically in magento 2?

You can set Page Title and Page Browser Title separately using Magento 2.
If you want to set Different Page title and browser tab title you need to do using programmatically.

You can do it via Either Block prepareLayout() function or Controller execute() function.

You can set custom Page Title, Meta Title, Meta Description, Meta Keywords for any page using programmatically. Continue reading “How to set meta title, keywords, description and page title for a page programmatically in magento 2?”

How to create schema file to create new database table Magento 2.3?

From Magento 2.3, You want to create a new database table or upgrade an existing table, you can create it with the db_schema.xml file. New database table creation/updating concept in Magento 2.3 is called as declarative schema.

From Magento 2.3 You don’t need to create InstallSchema.php and UpgradeSchema.php Continue reading “How to create schema file to create new database table Magento 2.3?”