@Jignesh Vagh , Apologies for the delay in responding from over the weekend.
While I was investigating this issue, I also found that you had asked this question on SO and you have got it fixed.
Glad to know that the issue is resolved. To benefit the community, find answers quickly, sharing the solution (/your answer) that worked for you here.
Set the same package version on deploying to Azure App Service as the package version that worked locally; for local environment. (Thanks to Nico Hasse for pointing this to you)
" fixed issue using below line set in composer.json, "php": "^7.3|^8.0", "laravel/lumen-framework": "^8.3.1"", its resolved my issue"
Also, as outlined in this doc section: Configure a PHP app for Azure App Service
"App Service runs your app in production mode, so you need to make sure that your project works as expected in production mode locally. Depending on your composer.json
, different packages may be installed for production mode (require vs. require-dev).
"
--
To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.