2015-07-12 19 views
0

你好,我安裝laravel 4.2在我的Windows PC,並得到錯誤觀點不能被foundetlaravel在Windows上無法找到的意見

InvalidArgumentException 
View [layout.index] not found. 

我的控制器內容

protected $layout = 'layout.index'; 

public function home() 
{ 
    return $this->layout->content = View::make('content_index.home'); 
} 

但真的文件存在的意見/佈局/ index.blade.php' 其有點bug或什麼?

回答

0

文件夾實際上/佈局,所以你的觀點,應在位於:後

php artisan config:cache 

我在運行此:

protected $layout = 'layouts.index'; 
0

我在本地運行後,這是我的問題是啓動流浪並解決問題。

開放SSH

php artisan config:cache