查看未找到[partials.header]。 (视图:W:\ domains \ iten \ resources \ views \ layouts \ master.blade.php)

时间:2019-01-18 12:32:33

标签: php laravel

我有前台master.blade.php和home.blade.php

@include('partials.header')
@yield('content')

和路线

Route::get('/', function () {
    return view('home');
});

我遇到错误

View [partials.header] not found. (View: W:\domains\iten\resources\views\layouts\master.blade.php) (View: W:\domains\iten\resources\views\layouts\master.blade.php)

enter image description here

2 个答案:

答案 0 :(得分:1)

我可以在 header..blade.php 中看到双点,将其更改为 header.blade.php

答案 1 :(得分:1)

重命名

// NOT STANDARD JAVASCRIPT (the proposal hasn't even been accepted for Stage 0)
this.{x, y} = foo(arg);

header..blade.php

视图中有两个(..)!