2017-02-13から1日間の記事一覧
if @if (count($people)) @endif foreach @foreach ($people as $person) {{ $person }} @endforeach Template テンプレート側: @yield('bar') テンプレート利用側: Fooテンプレートの継承: @extends('foo') セクション書き換え: @section('bar'), @stop テ…
Summary テンプレートはBladeファイル: foo.blade.php withを使ってControllerからViewへ渡す Controller側: view('pages.about')->with('name', $name) View側: エスケープ: {{$bar}} 非エスケープ: {!! $bar !!} How to basic app/Http/routes.php Route::…