Note: This question is not a duplicate of these questions:
I'm getting this error:
production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /home/coder/.local/share/Trash/files/myblog/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:45
When I tried dd($config['key']);
it returns 'null'. Even the database environment variables return null. So it means that Laravel is not reading from the .env file.
- What is the reason?
- How to fix this?
right now I've solved the issue by manually specifying key in Config/app.php file and setting the database values in Config/database.php file
I suspect that I've got the permissions/owner wrong on the .env file. I'm developing in Elementary OS