13
我綁來渲染一個簡單的觀點:配置緩存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
)
爲什麼它只是沒有緩存的配置工作?
你救我的日子!謝謝 – user908798 2016-01-06 08:08:22
同樣的問題,你能告訴我如何解決這個問題?我有一個朦朧的宅基不洞察項目 – Hamelraj 2016-03-20 08:14:49
直到我看到這個答案時感到困惑。謝啦! – daneczech 2016-10-03 12:03:48