在 laravel 5 中配置缓存未找到视图中的结果
我正在绑定渲染一个简单的视图:
public function test()
{
return \View::make('test');
}
我缓存我的配置:
$ php artisan config:cache
Configuration cache cleared!
Configuration cached successfully!
当我在Web浏览器中运行它时,我有:
InvalidArgumentException in FileViewFinder.php line 140:
View [test] not found.
in FileViewFinder.php line 140
at FileViewFinder->findInPaths('test', array('/XXXXXX/resources/views')) in FileViewFinder.php line 77
at FileViewFinder->find('test') in Factory.php line 145
at Factory->make('test') in Facade.php line 213
... (framework backtrace)
我清除了配置缓存...
$ php artisan config:clear
Configuration cache cleared!
...视图已呈现(这是一个简单的 HTML 视图resources/views/test.blade.php
)
为什么它只能在没有缓存配置的情况下工作?