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 RSA PRIVATE KEY-----\nHkVN9…\n-----END DSA PRIVATE KEY-----\n"
When I dd(env('SFTP_PRIVATE_KEY'));
I am getting an empty string back
Any idea how to deal with this?