I am getting a weird Laravel 5.7 problem. When I do composer install, everything works. As I clear cache I get this:

PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /Users/hasnainashfaq/code/newastute/vendor/laravel/framework/src/Illuminate/Container/Container.php:779

I have checked Google a lot. All solutions do lead me to success. I have no clue what to do.