0

我在这里设置了我的主 .php 文件:views/layouts/app.blade.php 和我的孩子在这里 views/tasks.blade.php

在 tasks.blade.php 我写了以下代码:

  @extends('layouts.app')
  @section('content')
    <div class="panel-body">
      <form action="/task" method="POST" class="form-horizontal">
         [content here]
      </form>
    </div>
  @endsection

在 app.blade.php 中,我有一个带有 html-tags、bootstrap cdn 和 jquery 的基本 html 设置。在我写的 body-tags 中:

@yield('content')

在 routes.php 中,localhost 加载地图时的默认路由设置为“tasks”:

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

但是,我没有在 app.blade.php 中显示 tasks.blade.php。这就是我得到的回报:

控制台浏览器

请问有什么解决办法吗?

4

1 回答 1

0

从我看你应该有这个

@extends('layouts.app')
  @section('content')
    <div class="panel-body">
      <form action="/task" method="POST" class="form-horizontal">
         [content here]
      </form>
    </div>
@stop
@stop 
于 2015-12-17T18:06:29.580 回答