Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 php artisan config:cache后,项目将会报错,具体错误信息如下 #3

Closed
qq389638896 opened this issue Jul 12, 2018 · 2 comments

Comments

@qq389638896
Copy link

Fatal error: Uncaught ReflectionException: Class config does not exist in F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Container\Container.php:752 Stack trace: #0 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Container\Container.php(752): ReflectionClass->__construct('config') #1 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Container\Container.php(631): Illuminate\Container\Container->build('config') #2 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Container\Container.php(586): Illuminate\Container\Container->resolve('config', Array) #3 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(732): Illuminate\Container\Container->make('config', Array) #4 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(110): Illuminate\Foundation\Application->make('config', Array) #5 F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illu in F:\myOnlineSvn\tongmeng\backend\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 752

@lonycc
Copy link
Owner

lonycc commented Jul 30, 2018

贴出完整报错吧,这个我在本地是没有错误的。有可能是你执行composer install时有些依赖没安装成功。

@lonycc
Copy link
Owner

lonycc commented Jul 30, 2018

本地重现了这个问题,删掉这个文件boostrap/cache/config.php即可正常。

@lonycc lonycc closed this as completed Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants