Php 窗口上的laravel找不到视图
您好,我在我的windows pc上安装了laravel 4.2,出现了foundet无法查看的错误Php 窗口上的laravel找不到视图,php,laravel,Php,Laravel,您好,我在我的windows pc上安装了laravel 4.2,出现了foundet无法查看的错误 InvalidArgumentException View [layout.index] not found. 我的控制器内容 protected $layout = 'layout.index'; public function home() { return $this->layout->content = View::make('content_index.home
InvalidArgumentException
View [layout.index] not found.
我的控制器内容
protected $layout = 'layout.index';
public function home()
{
return $this->layout->content = View::make('content_index.home');
}
但realy文件存在“views/layout/index.blade.php”
这是一个bug还是什么?文件夹实际上是/layouts,因此您的视图应该位于:
protected $layout = 'layouts.index';
文件夹实际上是/layouts,因此您的视图应位于:
protected $layout = 'layouts.index';
我的问题是在本地计算机上运行此操作后启动:
php artisan config:cache
php artisan config:cache
之后,我在《流浪汉》中运行此程序并解决问题
打开ssh
我的问题是在本地计算机上运行此操作后启动:
php artisan config:cache
php artisan config:cache
之后,我在《流浪汉》中运行此程序并解决问题
打开ssh