I am using Elastic Beanstalk for a project and was trying to execute a script via the console. When I did this, I was getting a strange error and tried to use Artisan Tinker to diagnose the problem.
When using Tinker, I found that it was unable to access the environment variables on Elastic Beanstalk and I suspect this might be related to why I was not able to execute a script manually via the console.
I found that Tinker could not access the environment variables because when I tried to dump something as simple as the environment "APP_ENV", it would return "null" instead of "development".
Is there a way to get Tinker to have access to the Elastic Beanstalk environment variables?