Laravel/Symfony: unable to load the "app" configuration file Laravel/Symfony: unable to load the "app" configuration file symfony symfony

Laravel/Symfony: unable to load the "app" configuration file


Try updating VirtualBox to v6. See this GitHub issue for more help.


I don't have an answer for why this happened, but I did code up an alternative to using Finder in the LoadConfiguration::getConfigurationFiles function (within \vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\LoadConfiguration.php) which allows me to run php artisan commands without any issues...

protected function getConfigurationFiles(Application $app){    $files = [];    $configPath = realpath($app->configPath());    $file = new \DirectoryIterator($configPath);    while($file->valid()) {        if(!$file->isDot() && ($file->getExtension() == 'php')) {            $directory = $this->getNestedDirectory($file, $configPath);            $files[$directory.basename($file->getRealPath(), '.php')] = $file->getRealPath();        }        $file->next();    }    ksort($files, SORT_NATURAL);    return $files;}

Hope that helps someone.