I am currently trying to clone an existing project of mine from github. After clone I run composer install
during the process I receive the following error:
Yes as said by @jakehallas . Its not related to what is showing in exception.
Actually if there is any dababase issue or other config varilables issue causes this.
Actually when i tried to change something in database.php i just duplicated same file as database-copy.php. I didn't execpt this causes issue.
After gone through what i have done before i just removed this database-copy.php file its working fine..
Thanks ...
I was typing a CMD in the CLI and accidentally typed it in the app config file. I had to follow this procedure in order to find the problem.
Solution, how to find problem:
https://laracasts.com/discuss/channels/general-discussion/class-log-does-not-exist?page=2
In your .env file make sure you have no spaces for values
for example this is allowed
DB_USERNAME=homestead
this is not allowed
DB_USERNAME=home stead
you can wrap the value in quotes if you have spaces.
DB_USERNAME="home stead"
really wish they used json for the .env file, maybe we should request that feature
In my case, a comma is missing in my config file (config/app.php) after I merged my branch to master.
it was a syntax error, but didn't display it.
When composer updating, i think laravel makes some validations.
Installing unzip works for me. Good Luck :)
In my case, the missing of PDO extension was the problem. After installing it, the problem was fixed.