php artisan key:generate ?
Random "production.ERROR: No application key has been specified." (In Local environment)
Hello,
I randomly get the following error:
"production.ERROR: No application key has been specified."
It doesn't bother much because the website just quickly refreshes, but I wonder where it comes from?
There is an application key and it happens randomly. Could that happen because I did not cache the config? Because I must not cache the config so I have to leave it un-cached
But also, why does it say production.ERROR if my APP_ENV is APP_ENV=local? (And when I type php artisan env it says that I'm really local)
Update: the env key in the app.php file is as follows:
'env' => env('APP_ENV', 'production')
It shows production there but the APP_ENV itself is set to local. But could that be the issue as well? That because I don't cache the config it sometimes tries to read the default?
Where should I look for to try to solve these 2 issues? (The wrong environment, and the random no app key errors?)
Thanks
Please or to participate in this conversation.