All Questions
6 questions
0
votes
1
answer
1k
views
Laravel (vlucas/phpdotenv) changing env values dynamically
In my test cases, I try to change some of the environment variables to create better test case coverage.
Laravel by default, only support get environment variable by env($key, $default = null), I ...
2
votes
1
answer
466
views
Laravel Lumen function env() returns null sometimes
I am developing api with Lumen 6.2.0 which gets GET request with certain parameters and token. When it gets parameters it process it in a certain way and then encode with a secret key which is in my ....
0
votes
1
answer
4k
views
How to put the private key contents in dotenv .env file for lumen app? [duplicate]
I want to work with SFTP server in my lumen app and therefore i need to store the private key to access the SFTP server in the .env file (dotenv)
I tried this approach:
SFTP_PRIVATE_KEY="-----BEGIN ...
6
votes
1
answer
2k
views
dotenv and Elastic Beanstalk - Environment file .env not found or not readable
I'm trying to upload a Lumen project in Amazon Elastic Beanstalk.
.env is in .gitignore.
This is OK, because I have several environement ( dev, qa, prod), so I need to configure have separate env ...
1
vote
1
answer
816
views
Lumen on AWS Elastic Beanstalk - .env
I'm trying to deploy a Lumen app in Elastic Beanstalk.
The problem is around the .env file, of course it's gitignored, so how can I put that file into the server?
I tried to manually create the file ...
0
votes
1
answer
875
views
How to read environment variables in travis-ci for Lumen application
I have a Lumen application that is using the Dotenv library from vlucas. When trying to deploy, travis-ci complains that there is no ".env" file. Do I need to modify my bootstrap/app.php file to ...