when i execute setup:upgrade command then some file is generated in generated/ folder.
after i have execute
chmod -R 777 /generated command
but when i check in some admin page like : Product grid page then it will showing below error :
Class Magento\Catalog\Model\View\Asset\ImageFactory does not exist
so i need to go into this directory
and when i check this folder permission then it will showing 775 so i need to change permission 777 into
Asset folder so then it will working fine.
so what is solution to every time update folder permission ? any idea please share.