Is the values of Key and Cipher in app.php set up correctly? That's the usual cause of that error message, not sure why it won't fail on it every time thou.
Yes, everything was set correctly. The env() function is corrupted. I had to change all env() in config files to hard coded settings.
Hi,
Try using artisan config:cache.
This is not the permanent fix for your issue but it is way better than hard coding config files.
What this does is, it creates a cached version of your config file and store it in bootstrap/cache folder, so the laravel can load it directly rather than compiling the config file from .env file.
if you are interested in this issue you may lookup following github issues
https://github.com/laravel/framework/issues/7354 https://github.com/laravel/framework/issues/10015#issuecomment-133684112 https://github.com/laravel/framework/issues/9824
thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community