facebook twitter hatena line google mixi email

Php/laravel/laravel5/layout

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

vi resources/views/hello/layouts.blade.php

<!DOCTYPE HTML>
<html lang="ja">
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
  @yield('content')
  </body>
</html>

vi resources/views/hello/index.blade.php

@extends('hello.layouts')
@section('content')
<h1>helloworld</h1>
@stop