I'm working on a codebase I inherited, after pulling the code from github and some minor changes I am able to get it to build and run using composer install using php artisan serve. However upon doing that when debug is enabled in my .env file I see the error Uncaught ReflectionException: Class config does not exist in .../vendor/laravel/framework/src/Illuminate/Container/Container.php:809
I've searched online and seen many troubleshoot this problem however none of the proposed solutions have worked for me. I've tried:
- deleting the
vendorsfolder and re-runningcomposer install - deleting the
boostrap/cache composer update
If in the .env file I set APP_DEBUG=false the app runs but only loads a 404 page. Appreciate any suggests or help.Other useful details
php version: 7.3.33
composer version: 2.7.7
laravel version: 7.30.6
../tests/Pusher.phpin a test folder that isn't apart of the codebase in theindex.phpfile . also updated the original post with the version of laravel I'm running