I checked bootstrap/cache/config.php and found this
'key' => NULL,
i have APP_KEY in my local.env, why is it not updating?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Im getting this error after setting up the .env
RuntimeException in Encrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
i have 3 env .env local.env production.env
my .env
local
i already tried restarting my local server everytime i changed my env
also i already tried
php artisan key:generate
php artisan config:clear
php artisan config:cache
but still i got the same error message
got it working now...
here is what i found out
i cleared the env file that's why the content of my local.env is not being cached, i pasted the content of local.env to .env file and then run php artisan config:cache to make it work...
also found out that it is only me on this thread talking to my self, realized my error, found my own solution. LOL
Please or to participate in this conversation.