view - dich1/todo GitHub Wiki

リファレンス

https://readouble.com/laravel/5.8/ja/blade.html

  • viewは手動で追加する必要がある
touch resouces/views/messages/index.blade.php
touch resouces/views/messages/show.blade.php
touch resouces/views/messages/create.blade.php
touch resouces/views/messages/edit.blade.php

ディレクティブ

  • セクション
    • @section
  • セクションの内容
    • @yield
  • 継承
    • @extends
  • 分割
    • @include
                    <div class="form-group @if($errors->has('status')) has-error @endif">
                       <label for="status-field">Status</label>
                    <div class="btn-group" data-toggle="buttons"><label class="btn btn-primary"><input type="radio" value="true" name="status-field" id="status-field" autocomplete="off"> True</label><label class="btn btn-primary active"><input type="radio" name="status-field" value="false" id="status-field" autocomplete="off"> False</label></div>
                       @if($errors->has("status"))
                        <span class="help-block">{{ $errors->first("status") }}</span>
                       @endif
                    </div>
⚠️ **GitHub.com Fallback** ⚠️