Laravel Environment Variables(without default value passed in method) not working inside Artisan Command file
问题 I am using Laravel 6.x for client's project wherein I have built an API in the Artisan Command for syncing data. Now client wants the configuration to be discreet, out of main source code and without any fallback values as possible. That means I must define the configs in the .env file and use the env() method without any fallback default values. This must be possible inside Laravel Artisan command class files, but it is not working as intended when I use the env method in the code as below: