Uncaught ReflectionException: Class log does not exist Laravel 5.2

前端 未结 25 2197
长情又很酷
长情又很酷 2020-11-27 17:15

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:

25条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 17:29

    This error may be caused by an error in one of the config files. To locate which file is causing it, change the function loadConfigurationFiles in /vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php to:

    protected function loadConfigurationFiles(Application $app, RepositoryContract $repository)
    {
        foreach ($this->getConfigurationFiles($app) as $key => $path) {
            var_dump('loading key: ' . $key . ' -- path: ' . $path);
            $repository->set($key, require $path);
        }
    }
    

    Run php artisan and the last loading "key" is the config file causing the error. Correct it and don't forget to remove the your var_dump command... Good luck.

提交回复
热议问题