I had to clear config and cache, I ran into the following exception :
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /html/project/bootstrap/cache/compiled.php:1355
I removed bootstrap/compiled.php
and ran php artisan clear-compiled
, Then the exception got changed a little bit.
Class log does not exist in /html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Steps i took to solve it :
- Checked env for spaces and syntax errors, Which had a blank space and i removed it, but still my
php artisan
commands are not working. - Ran composer update | Still not working
- Some people associate the error with mbstring and php-mysql extensions which i both have.
- Tried composer dumpautoload
What am i missing, How should be done ?
composer dumpautoload
– aynberfind . -iname '*.php' -exec php -l '{}' \; | grep -v '^No syntax errors'
on the command line to see if it finds any overt errors. – aynber