Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jove's avatar
Level 7

Uncaught ReflectionException: Class config does not exist

Hello, I get this error each time I cache my config:

Uncaught ReflectionException: Class config does not exist in /project/path/vendor/framework/src/illuminate/Container/Container.php:767

Note, I do not get this error on artisan config:cache but I get it on everything after, even composer dump-autoload.

I can solve this by deleting config.php in bootstrap/cache. then the error is gone. Cache and it's back. I Uncommented the whole .env file and it still happens. Where do I start to look for issues?

0 likes
1 reply

Please or to participate in this conversation.