Fatal error: Uncaught RuntimeException: The specified "/var/www/dev-inspa.com/generated/code/Magento/Framework/App/ResourceConnection/Proxy.php.3998" file couldn't be written. Warning!file_put_contents(/var/www/dev-inspa.com/generated/code/Magento/Framework/App/ResourceConnection/Proxy.php.3998): failed to open stream: Permission denied
Class Magento\Framework\App\ResourceConnection\Proxy generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. in /var/www/dev-inspa.com/vendor/magento/framework/Code/Generator.php:135
Stack trace:
#0 /var/www/dev-inspa.com/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Framewo...') in /var/www/dev-inspa.com/vendor/magento/framework/Code/Generator.php on line 135