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:
As previous answers has outlined we had an issue with one of our configuration files in laravel. We used the global $app variable which were no longer possible in laravel 5.2+.
The way we found this was to check which file failed to load in the loadConfigurationFiles method in src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php.