I'd like to create a Laravel-PHP API service that is hosted on the Azure cloud, and I also need the front end react to be hosted on Azure. Can anyone help?
I tried using the Azure app service, but I'm not sure how to get through.env datas to app service is also receiving a build error indicating that the php version is incompatible. Can someone offer a solution for hosting the php-Laravel framework on the Azure cloud?
You can put all your
.envvalues in app settings. If you have secrets, it's best to use an Azure Key Vault and make a reference from your app settings to an Azure KeyVault.You can get the available PHP versions:
See this documentation for Laravel specifics on Azure App Service.