{"id":405,"date":"2018-04-04T06:22:34","date_gmt":"2018-04-03T21:22:34","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=405"},"modified":"2018-04-04T06:22:34","modified_gmt":"2018-04-03T21:22:34","slug":"%e5%bf%85%e8%a6%8b%ef%bc%81laravel%ef%bc%885-6%ef%bc%89%e3%81%aeblade%e3%81%a7%e3%81%a7%e3%81%8d%e3%82%8b%e3%81%93%e3%81%a8%e3%80%8c%e3%81%be%e3%81%a8%e3%82%81%e3%80%8d","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=405","title":{"rendered":"\u5fc5\u898b\uff01Laravel\uff085.6\uff09\u306eBlade\u3067\u3067\u304d\u308b\u3053\u3068\u300c\u307e\u3068\u3081\u300d"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u50d5\u304cLaravel\u3092\u4f7f\u3044\u59cb\u3081\u3066\u304b\u3089\u304b\u308c\u3053\u308c\uff12\u5e74\u3050\u3089\u3044\u304c\u7d4c\u3068\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3051\u3069\u3001\u4eca\u3067\u3082Laravel\u306e\u958b\u767a\u306f\u6d3b\u767a\u306b\u884c\u308f\u308c\u3066\u3044\u3066\u3001\u305f\u3063\u305f\u534a\u5e74\u904e\u304e\u305f\u3060\u3051\u3067\u3082\u3063\u3068\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001Laravel\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30a8\u30f3\u30b8\u30f3\u300cBlade\u300d\u3067\u3082\u540c\u3058\u306a\u3093\u3067\u3001\u3053\u3053\u3044\u3089\u3067\u304d\u3063\u3061\u308aBlade\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u307e\u3068\u3081\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u203b\u65b0\u5e74\u5ea6\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u65b0\u793e\u4f1a\u4eba\u3092\u60f3\u5b9a\u3057\u305f\u6587\u7ae0\u306b\u3057\u3066\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u5c11\u3057\u56de\u308a\u304f\u3069\u3044\u8868\u73fe\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff08\u65b0\u793e\u4f1a\u4eba\u3055\u3093\uff01\u52aa\u529b\u304c\uff11\uff10\uff10\uff05\u5831\u308f\u308c\u308b\u3068\u306f\u601d\u3044\u307e\u305b\u3093\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u9762\u767d\u3044\u3093\u3067\u3084\u3063\u3066\u307f\u308b\u4fa1\u5024\u306f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u266a\u305c\u3072\u697d\u3057\u304f\u3067\u304d\u308b\u3088\u3046\u3001\u5de5\u592b\u3057\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002m_ _m\uff09<\/p>\n<h1>\uff11\uff0e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8aad\u307f\u8fbc\u307f<\/h1>\n<p>\u307e\u305a\u306f\u57fa\u672c\u4e2d\u306e\u57fa\u672c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\uff08HTML\u30bf\u30b0\u3068\u304b\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\uff09\u306e\u8aad\u307f\u8fbc\u307f\u3067\u3059\u3002<\/p>\n<p>\u3084\u308a\u65b9\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3001<\/p>\n<pre><strong>public function index() {<\/strong>\r\n\r\n<strong>    return view('home');<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u3001view()\u306e\u4e2d\u3067\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<br \/>\n\u6c17\u3092\u3064\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u306e\u306f\u3001\u3053\u306e\u5834\u5408\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u3001<\/p>\n<p>\/resources\/views\/home<strong>.blade.php<\/strong><\/p>\n<p>\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u5b9f\u969b\u306b\u306f\u300c.blade.php\u300d\u304c\u7701\u7565\u3055\u308c\u3066\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3082\u3057<\/p>\n<p>\/resources\/views\/<strong>user<\/strong>\/home.blade.php<\/p>\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u4e00\u968e\u5c64\u4e0b\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u306f\u3001<\/p>\n<pre><strong>public function index() {<\/strong>\r\n\r\n<strong>    return view('user.home');<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u3068\u3044\u3046\u5177\u5408\u306b\u3001\u30c9\u30c3\u30c8\u3067\u3064\u306a\u3044\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h1>\uff12\uff0e\u30c7\u30fc\u30bf\u306e\u8868\u793a<\/h1>\n<p>\u3053\u308c\u3082\u57fa\u672c\u306e\u30c7\u30fc\u30bf\u8868\u793a\uff08\u547c\u3073\u51fa\u3057\uff09\u3067\u3059\u3002<br \/>\nBlade\u306e\u4e2d\u3067\u5909\u6570\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n<pre><strong>{{\u00a0$test }}<\/strong><\/pre>\n<p>\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u3072\u3052\u62ec\u5f27\u306f\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u3044\u3046\u3068\u3001\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u306e\u8fd1\u304f\u306b\u3042\u308b\u6587\u5b57\u3067\u3059\u3002Shift\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u306a\u304c\u3089\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-408\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/IMG_20180404_014458-_2.jpg\" alt=\"\" width=\"1000\" height=\"750\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/IMG_20180404_014458-_2.jpg 1000w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/IMG_20180404_014458-_2-300x225.jpg 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/IMG_20180404_014458-_2-768x576.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001$test\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3001<strong>view()<\/strong>\u306e\uff12\u3064\u76ee\u306b\u914d\u5217\u3068\u3057\u3066\u30bb\u30c3\u30c8\u3057\u3066\u3084\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>public function index() {\r\n\r\n    return view('home', <strong>[<\/strong>\r\n<strong>        'test' =&gt; '\u30c6\u30b9\u30c8\u306f\u5acc\u3044\u3060'<\/strong>\r\n<strong>    ]<\/strong>);\r\n\r\n}<\/pre>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001\u30bb\u30c3\u30c8\u3059\u308b\u914d\u5217\u306b\u306f\u3001\uff04\uff08\u30c9\u30eb\u30de\u30fc\u30af\uff09\u306f\u542b\u307e\u308c\u3066\u306a\u3044\u3067\u3059\u3051\u3069\u3001\u547c\u3073\u51fa\u3059\u3068\u304d\u306f\u300c\uff04\u300d\u304c\u5fc5\u8981\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Blade\u306e\u3072\u3052\u62ec\u5f27\u306f\u3001\u81ea\u52d5\u3067\u300c&#8221;\u300d\u3092\u300c&amp;quot;\u300d\u306a\u3069\u5b89\u5168\u306a\u6587\u5b57\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305f\u307e\u306b\u305d\u306e\u307e\u307e\u8868\u793a\u3057\u3066\u307b\u3057\u3044\u5834\u5408\u3082\u3042\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306f\u3001<\/p>\n<pre><strong>{!! $test !!}<\/strong><\/pre>\n<p>\u3092\u4f7f\u3048\u3070\u305d\u306e\u307e\u307e\u3067\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u6b21\u306e\u3088\u3046\u306b\u300cor\u300d\u3092\u4f7f\u3046\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>{{ $name <strong>or<\/strong> '\u592a\u90ce' }}<\/pre>\n<p>\u3064\u307e\u308a\u3001\u3082\u3057\u300c$name\u300d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u300c\u592a\u90ce\u300d\u304c\u8868\u793a\u3055\u308c\u3001\u3082\u3057\u300c\u4e8c\u90ce\u300d\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u300c\u4e8c\u90ce\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>public function index() {\r\n\r\n    return view('home', [\r\n        'name' =&gt; '\u4e8c\u90ce',\r\n    ]);\r\n\r\n}<\/pre>\n<h1>\uff13\uff0eif\u6587<\/h1>\n<p>Blade\u3067\u306f\u3001PHP\u306e\u3088\u3046\u306b\u300cif\u300d\u6587\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre><strong>@if<\/strong> ($number == 1)\r\n    \uff11\r\n<strong>@elseif<\/strong> ($number == 2)\r\n    \uff12\r\n<strong>@else<\/strong>\r\n    \u305d\u306e\u4ed6\r\n<strong>@endif<\/strong><\/pre>\n<p>PHP\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u306a\u306e\u3067\u554f\u984c\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001Blade\u306b\u306fif\u6587\u306b\u4f3c\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>@unless<\/h2>\n<p>if\u306e\u5426\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u6b21\u306e\u4f8b\u306f\u300c\u30ed\u30b0\u30a4\u30f3\u3057\u3066<strong>\u306a\u3044<\/strong>\u300d\u306a\u3089\u300c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u306d\uff01\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><strong>@unless<\/strong> (auth()-&gt;check())\r\n    \u30ed\u30b0\u30a4\u30f3\u3057\u3066\u306d\uff01\r\n<strong>@endunless<\/strong><\/pre>\n<h2>@isset<\/h2>\n<p>isset\u306f\u3001\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3066\u308b\u304b\u3069\u3046\u304b\u3067\u3059\u3002\u3053\u308c\u3082PHP\u3068\u540c\u3058\u3067\u3059\u306d\u3002<\/p>\n<pre><strong>@isset<\/strong>($numbers)\r\n    \u3042\u308a\u307e\u3059\uff01\r\n<strong>@endisset<\/strong><\/pre>\n<p>\u203b\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001\u30c7\u30fc\u30bf\u304c\u300c<strong>\u5b58\u5728\u3057\u3066\u308b\u304b\u3069\u3046\u304b<\/strong>\u300d\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u304b\u3089\u306e\u5909\u6570\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u300c\u5b58\u5728\u3057\u3066\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3001\u300c\u3042\u308a\u307e\u3059\uff01\u300d\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<pre>return view('home', [\r\n    <strong>'numbers' =&gt; []<\/strong>\r\n]);<\/pre>\n<h2>@empty<\/h2>\n<p>empty\u3082PHP\u95a2\u6570\u3068\u540c\u3058\u304f\u3001\u30c7\u30fc\u30bf\u304c\u7a7a\uff08\u5b58\u5728\u3057\u3066\u306a\u3044\uff09\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><strong>@empty<\/strong>($numbers)\r\n    \u7a7a\u3060\u306d\uff01\r\n<strong>@endempty<\/strong><\/pre>\n<h2>@auth<\/h2>\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>@auth\r\n    \u30ed\u30b0\u30a4\u30f3\u4e2d\uff01\r\n@endauth<\/pre>\n<h1>\uff14\uff0e\u30eb\u30fc\u30d7<\/h1>\n<p>@if\u3068\u540c\u3058\u304f\u3001PHP\u306e\u300cfor()\u300d\u3084\u300cforeach()\u300d\u306e\u3088\u3046\u306b\u305f\u304f\u3055\u3093\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3067\u56de\u3057\u306a\u304c\u3089\u8868\u793a\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>@for<\/h2>\n<p>\u305f\u3068\u3048\u3070\u3001<\/p>\n<pre><strong>@for ($i = 0; $i &lt; 10; $i++)<\/strong>\r\n    $i \u306e\u4e2d\u8eab\u306f\u3001 {{ $i }}&lt;br&gt;\r\n<strong>@endfor<\/strong><\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre>$i \u306e\u4e2d\u8eab\u306f\u3001 0\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 1\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 2\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 3\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 4\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 5\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 6\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 7\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 8\r\n$i \u306e\u4e2d\u8eab\u306f\u3001 9<\/pre>\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>@foreach<\/h2>\n<p>\u307e\u305f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u30c7\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3001<\/p>\n<pre>public function index() {\r\n\r\n    return view('home', [\r\n        'numbers' =&gt; [1,2,3,4,5]\r\n    ]);\r\n\r\n}<\/pre>\n<pre>@foreach ($numbers as $number)\r\n    &lt;p&gt;$number\u306e\u4e2d\u8eab\u306f\u3001 {{ $number }}&lt;\/p&gt;\r\n@endforeach<\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre>$number\u306e\u4e2d\u8eab\u306f\u3001 1\r\n\r\n$number\u306e\u4e2d\u8eab\u306f\u3001 2\r\n\r\n$number\u306e\u4e2d\u8eab\u306f\u3001 3\r\n\r\n$number\u306e\u4e2d\u8eab\u306f\u3001 4\r\n\r\n$number\u306e\u4e2d\u8eab\u306f\u3001 5<\/pre>\n<p>\u3068\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>@forelse\uff0f@empty<\/h2>\n<p>\u305d\u3057\u3066\u3001php\u306b\u306f\u306a\u3044Blade\u72ec\u81ea\u306e\u66f8\u304d\u65b9\u306a\u306e\u304c\u3001\u300c<strong>@forelse\u301c@empty\u301c@endforelse<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u5909\u6570\u304c\u7a7a\u3060\u3063\u305f\u3068\u304d\u306b<strong>@empty<\/strong>\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u4fbf\u5229\u306a\u66f8\u304d\u65b9\u3067\u3059\u3002\u3055\u3063\u304d\u306e\u4f8b\u3067\u8a00\u3046\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3082\u3057<strong>$numbers<\/strong>\u304c\u7a7a\u5834\u5408\u306f\u300c\u6570\u5b57\u306a\u3057\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>@forelse ($numbers as $number)\r\n    {{ $number }}\r\n@empty\r\n    &lt;p&gt;\u6570\u5b57\u306a\u3057&lt;\/p&gt;\r\n@endforelse<\/pre>\n<p>\u203b\u305f\u3060\u3057\u3001$numbers\u306e\u4e2d\u8eab\u304cnull\u306e\u5834\u5408\u3084\u3001\u5909\u6570\u305d\u306e\u3082\u306e\u304c\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b\u307e\u305f\u3001php\u3068\u540c\u3058\u304f@while\u3082\u3042\u308a\u307e\u3059\u3051\u3069\u3001\u3042\u308c\u306f\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u30e4\u30d0\u30a4\u306e\u3067\u7701\u7565\u3057\u307e\u3059\uff08\u7b11\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u30eb\u30fc\u30d7\u3067\u5fd8\u308c\u3066\u306f\u884c\u3051\u306a\u3044\u306e\u304c\u300c<strong>$loop<\/strong>\u300d\u3067\u3059\u3002@foreach\u3084@forelse\u3092\u4f7f\u3046\u3068\u81ea\u52d5\u7684\u306b\u5909\u6570\u300c<strong>$loop<\/strong>\u300d\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3001\u3053\u3053\u304b\u3089\u3044\u308d\u3044\u308d\u3068\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u4f8b\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre>@foreach ($numbers as $number)\r\n    \u30fb\uff10\u304b\u3089\u59cb\u307e\u308b\u756a\u53f7\u3001{{ <strong>$loop-&gt;index<\/strong> }}&lt;br&gt;\r\n    \u30fb\uff11\u304b\u3089\u59cb\u307e\u308b\u756a\u53f7\u3001{{ <strong>$loop-&gt;iteration<\/strong> }}&lt;br&gt;\r\n    \u30fb\u6b8b\u308a\u306f\u3001{{ <strong>$loop-&gt;remaining<\/strong> }} \u500b&lt;br&gt;\r\n    \u30fb\u30c7\u30fc\u30bf\u6570\u306f\u3001{{ <strong>$loop-&gt;count<\/strong> }}&lt;br&gt;\r\n    @if(<strong>$loop-&gt;first<\/strong>)\r\n        \u30fb\u6700\u521d\u306e\u30c7\u30fc\u30bf\u306f\u3001{{ $number }}&lt;br&gt;\r\n    @elseif(<strong>$loop-&gt;last<\/strong>)\r\n        \u30fb\u6700\u5f8c\u306e\u30c7\u30fc\u30bf\u306f\u3001{{ $number }}&lt;br&gt;\r\n    @endif\r\n@endforeach<\/pre>\n<h2>@each<\/h2>\n<p>\u3082\u3057\u3001\u4ed6\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u547c\u3073\u51fa\u3057\u3066\u30eb\u30fc\u30d7\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u300c@each\u300d\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u300c\/resources\/partials\/section.blade.php\u300d\u306b\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u304a\u3044\u3066\u3001<\/p>\n<pre>&lt;li&gt;{{ <strong>$name<\/strong> }}&lt;\/li&gt;<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u547c\u3073\u51fa\u3059\u3068\u3001\u5168\u3066\u306e\u90e8\u7f72\u540d\u304c&lt;li&gt;&lt;\/li&gt;\u3067\u56f2\u307e\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>@each('partials.section', $sections, '<strong>name<\/strong>')<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-414\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/sections_li.png\" alt=\"\" width=\"106\" height=\"74\" \/><\/p>\n<p>\u203b\u6ce8\u610f\u3059\u308b\u5834\u6240\u306f\u3001@each\u306e\uff13\u3064\u76ee\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002\u3053\u3053\u304csection.blade.php\u306e\u300c$name\u300d\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\uff15\uff0e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7d99\u627f\uff08\u5171\u901a\u90e8\u5206\u3092\u3064\u304f\u308b\uff09<\/h1>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u30da\u30fc\u30b8\u3054\u3068\u306b\u5fc5\u8981\u3068\u306a\u3063\u305f\u3089\u30d5\u30a1\u30a4\u30eb\u3060\u3089\u3051\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3057\u3001\u305d\u3046\u306a\u308b\u3068\u3001\u5171\u901a\u90e8\u5206\u3082\u3053\u3068\u3042\u308b\u3054\u3068\u306b\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u306b\u5f79\u306b\u305f\u3064\u306e\u304c\u3001\u7d99\u627f\u3067\u3059\u3002<br \/>\n\u6b21\u306e\u3088\u3046\u306a\u30da\u30fc\u30b8\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-411\" style=\"border: 3px solid #555;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_one-1.png\" alt=\"\" width=\"1399\" height=\"720\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_one-1.png 1399w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_one-1-300x154.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_one-1-768x395.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_one-1-1024x527.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-412\" style=\"border: 3px solid #555;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_two-1.png\" alt=\"\" width=\"1399\" height=\"720\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_two-1.png 1399w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_two-1-300x154.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_two-1-768x395.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/page_two-1-1024x527.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u306f\u3044\u3002\u30da\u30fc\u30b8\u4e0a\u90e8\u306e\u30d8\u30c3\u30c0\u30fc\u306f\u5168\u304f\u540c\u3058\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u3060\u3051\u304c\u9055\u3063\u3066\u307e\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001<\/p>\n<ul>\n<li><strong>\u5171\u901a\u90e8\u5206\uff08\u30ec\u30a4\u30a2\u30a6\u30c8\uff09<\/strong><\/li>\n<li><strong>\u30da\u30fc\u30b8\u90e8\u5206\uff08\uff11\u3064\u76ee\u306e\u30da\u30fc\u30b8\u3001\uff12\u3064\u76ee\u306e\u30da\u30fc\u30b8\uff09<\/strong><\/li>\n<\/ul>\n<p>\u306b\u5206\u3051\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u3082\u3057\uff13\u3064\u76ee\u306e\u30da\u30fc\u30b8\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3082\uff14\u3064\u76ee\u306e\u30da\u30fc\u30b8\u304c\u5fc5\u8981\u3067\u3082\u5171\u901a\u90e8\u5206\u306f\u3072\u3068\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3084\u308a\u65b9\u3067\u3059\u3002<br \/>\n\u307e\u305a\u5171\u901a\u90e8\u5206\uff08\u30ec\u30a4\u30a2\u30a6\u30c8\uff09\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u306f\u3069\u3053\u3067\u3082\u3044\u3044\u3067\u3059\u3051\u3069\u3001Laravel\u7684\u306b\u306f\u3001\u300c<strong>\/resources\/views\/layouts<\/strong>\u300d\u306e\u4e2d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4e2d\u306b\u306f\u3001app.blade.php\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3051\u3069\u3001\u7df4\u7fd2\u3067\u3059\u306e\u3067\u3001\u300c<strong>main.blade.php<\/strong>\u300d\u3068\u3044\u3046\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\uff08main.blade.php\uff09<\/strong><\/p>\n<pre>&lt;html&gt;\r\n    &lt;head&gt;&lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u3053\u3053\u306f\u5171\u901a&lt;\/h1&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u203b\u30db\u30f3\u30c8\u306fmata\u30bf\u30b0\u3068\u304b\u304c\u3042\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u3051\u3069\u3001\u7df4\u7fd2\u306a\u306e\u3067\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u5171\u901a\u90e8\u5206\u306b\u30da\u30fc\u30b8\u3054\u3068\u306b\u9055\u3046\u5185\u5bb9\u3092\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001<strong>@yield()<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002\uff08\u3042\u3068\u3067\u3001\u3053\u3053\u304c\u30da\u30fc\u30b8\u90e8\u5206\u306b\u7f6e\u304d\u304b\u3048\u3089\u308c\u307e\u3059\uff09<\/p>\n<pre>&lt;html&gt;\r\n    &lt;head&gt;&lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u3053\u3053\u306f\u5171\u901a&lt;\/h1&gt;\r\n        <strong>@yield('content')<\/strong>\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u203b<strong>content<\/strong>\u3068\u3044\u3046\u540d\u524d\u306f\u81ea\u5206\u306e\u597d\u304d\u306a\u3082\u306e\u3067OK\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u30da\u30fc\u30b8\u3054\u3068\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u308c\u3082\u3069\u3053\u3067\u3082OK\u3067\u3059\u304c\u3001\u300chome\u300d\u30d5\u30a1\u30eb\u30c0\u306a\u3069\u306b\u307e\u3068\u3081\u3066\u304a\u304f\u3068\u7ba1\u7406\u3057\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\/resources\/home\/one.blade.php<\/strong><\/li>\n<li><strong>\/resources\/home\/two.blade.php<\/strong><\/li>\n<\/ul>\n<p>\u4e2d\u8eab\u306f\u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u3002<\/p>\n<pre><strong>@extends('layouts.main')<\/strong>\r\n\r\n<strong>@section('content')<\/strong>\r\n<strong>    \uff11\u3064\u3081\u306e\u30da\u30fc\u30b8<\/strong>\r\n<strong>@endsection<\/strong><\/pre>\n<p>\u6700\u521d\u306e<strong>@extends<\/strong>\u304c\u3055\u3063\u304d\u4f5c\u3063\u305f\u5171\u901a\u90e8\u5206\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3001<\/p>\n<p>\/resources\/<strong>layouts<\/strong>\/<strong>main<\/strong>.blade.php<\/p>\n<p>\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<strong>@section(&#8216;content&#8217;)\u301c@endsection<\/strong>\u307e\u3067\u304c\u3001\u3055\u3063\u304d\u306e<strong>@yield(&#8216;content&#8217;)<\/strong>\u3068\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u8868\u793a\u3055\u308c\u308b\u306e\u306f\u3001<\/p>\n<pre>&lt;html&gt;\r\n    &lt;head&gt;&lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u3053\u3053\u306f\u5171\u901a&lt;\/h1&gt;\r\n        <strong>\uff11\u3064\u3081\u306e\u30da\u30fc\u30b8<\/strong>\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3068\u306a\u308b\u308f\u3051\u3067\u3059\u306d\u3002\u305d\u3057\u3066\u3001\uff12\u3064\u76ee\u306e\u30da\u30fc\u30b8\u3082\u540c\u3058\u3067\u3001two.blade.php\u306b\u3001<\/p>\n<pre>@extends('layouts.main')\r\n\r\n@section('content')\r\n    2\u3064\u3081\u306e\u30da\u30fc\u30b8\r\n@endsection<\/pre>\n<p>\u3068\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001@section\u306f\u3069\u3053\u306b\u3067\u3082\u4f5c\u3063\u3066\u3044\u3044\u306e\u3067\u3001\u5171\u901a\u90e8\u5206\u3092\u6b21\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3001\u7279\u5b9a\u306e\u30da\u30fc\u30b8\u3060\u3051\u3067\u3001CSS\u30d5\u30a1\u30a4\u30eb\u3084JavaScript\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u3053\u3080\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3057\u3001\u30bf\u30a4\u30c8\u30eb\u3082\u30da\u30fc\u30b8\u3054\u3068\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;title&gt;<strong>@yield('title')<\/strong>&lt;\/title&gt;\r\n        <strong>@yield('style')<\/strong>\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u3053\u3053\u306f\u5171\u901a&lt;\/h1&gt;\r\n        <strong>@yield('content')<\/strong>\r\n        <strong>@yield('script')<\/strong>\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\u30da\u30fc\u30b8\u3054\u3068\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>@extends('layouts.main')\r\n\r\n@section('title')\r\n    \uff11\u3064\u76ee\u306e\u30bf\u30a4\u30c8\u30eb\r\n@endsection\r\n\r\n@section('content')\r\n    \uff11\u3064\u76ee\u306e\u30da\u30fc\u30b8\r\n@endsection\r\n\r\n@section('script')\r\n\r\n    &lt;script src=\"\/js\/***.js\"&gt;&lt;\/script&gt;\r\n\r\n@endsection\r\n\r\n@section('style')\r\n\r\n    &lt;link rel=\"stylesheet\" href=\"\/css\/***.css\"&gt;\r\n\r\n@endsection<\/pre>\n<p>\u203b\u3061\u306a\u307f\u306b\u3001\u5185\u5bb9\u304c\u77ed\u3044\u5834\u5408\u306f\u3001<\/p>\n<pre>@section('title', '\u30bf\u30a4\u30c8\u30eb')<\/pre>\n<p>\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u72b6\u6cc1\u306b\u5408\u308f\u305b\u3066\u4f7f\u3044\u5206\u3051\u308b\u306e\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>@parent<\/h2>\n<p>\u3082\u3057\u3001\u5171\u901a\u90e8\u5206\uff08\u89aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff09\u306e\u4e0a\u4e0b\u306b\u4f55\u304b\u3092\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001@section()\u301c@show\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\u3001<\/p>\n<pre>&lt;html&gt;\r\n    &lt;head&gt;&lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;\u3053\u3053\u306f\u5171\u901a&lt;\/h1&gt;\r\n        <strong>@section('sidebar')<\/strong>\r\n<strong>            \u30b5\u30a4\u30c9\u30d0\u30fc<\/strong>\r\n<strong>        @show<\/strong>\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u30da\u30fc\u30b8\u3054\u3068\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u3001<\/p>\n<pre><strong>@section('sidebar')<\/strong>\r\n    &lt;p&gt;\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u4e0a&lt;\/p&gt;\r\n    <strong>@parent<\/strong>\r\n    &lt;p&gt;\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u4e0b&lt;\/p&gt;\r\n<strong>@endsection<\/strong><\/pre>\n<p>\u3068\u3044\u3046\u98a8\u306b\u3001@parent\u3092\u4f7f\u3048\u3070<strong>\u89aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u306e\u4e0a\u4e0b\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u3064\u304f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<p>\u203b\u3053\u308c\u3092\u3084\u3063\u3066\u304a\u304f\u3068\u3001\u3082\u3057\u3001@section(&#8216;sidebar&#8217;)\u301c@endsection\u304c\u306a\u3044\u5834\u5408\u3001\u300c\u30b5\u30a4\u30c9\u30d0\u30fc\u300d\u3060\u3051\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u60c5\u5831\u3092\u5207\u308a\u66ff\u3048\u305f\u3044\u5834\u5408\u306b\u4f7f\u3044\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h1>\uff16\uff0e\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\uff08\u4f7f\u3044\u56de\u3057\u90e8\u5206\uff1a\u305d\u306e\uff11\uff09<\/h1>\n<p>\u4f8b\u3048\u3070\u3001bootstrap\u306e<strong>badge<\/strong>\u306e\u3088\u3046\u306b\u3001\u4f55\u56de\u3082\u4f7f\u3046\u90e8\u5206\u3092\u5171\u901a\u5316\u3057\u3066\u304a\u3051\u3070\u5909\u66f4\u304c\u3042\u3063\u305f\u3068\u304d\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u3044\u3044\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-413\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/bootstrap-badges.png\" alt=\"\" width=\"453\" height=\"72\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/bootstrap-badges.png 453w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/bootstrap-badges-300x48.png 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/p>\n<p>\u305d\u3093\u306a\u5834\u5408\u306b\u5f79\u7acb\u3064\u306e\u304c\u4e00\u90e8\u5206\u3060\u3051\u3092\u5225\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u300c\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\u300d\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u3001\u4e00\u90e8\u5206\u3060\u3051\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\/resources\/views\/partials\/section.blade.php<\/p>\n<pre>&lt;span class=\"badge badge-primary\"&gt;\u55b6\u696d\u90e8&lt;\/span&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001\u547c\u3073\u51fa\u3057\u305f\u3044\u5834\u6240\u3067<\/p>\n<pre><strong>@include('partials.section')<\/strong><\/pre>\n<p>\u3068\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<br \/>\n\u3082\u3057\u3001\u53ef\u5909\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u90e8\u5206\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u6570\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3001<\/p>\n<pre>&lt;span class=\"badge badge-<strong>{{ $type }}<\/strong>\"&gt;<strong>{{ $name }}<\/strong>&lt;\/span&gt;<\/pre>\n<p>\u547c\u3073\u51fa\u3057\u5143\u3067\u3001\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>@include('partials.label', [\r\n    '<strong>type<\/strong>' =&gt; '<strong>success<\/strong>',\r\n    '<strong>name<\/strong>' =&gt; '<strong>\u55b6\u696d\u90e8<\/strong>'\r\n])<\/pre>\n<p>\u3053\u306e\u4f8b\u3060\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;span class=\"badge badge-<strong>success<\/strong>\"&gt;<strong>\u55b6\u696d\u90e8<\/strong>&lt;\/span&gt;<\/pre>\n<h1>\uff17\uff0e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff08\u4f7f\u3044\u56de\u3057\u90e8\u5206\uff1a\u305d\u306e\uff12\uff09<\/h1>\n<p>\u4e00\u90e8\u5206\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\u3067\u3082\u3067\u304d\u307e\u3059\u304c\u3001Blade\u3067\u306f\u3082\u3046\u3072\u3068\u3064\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3044\u3046\u3084\u308a\u65b9\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u3084\u308a\u65b9\u306f\u3001\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\u3068\u540c\u3058\u3067\u3001\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001<\/p>\n<p>\/resources\/components\/alert.blade.php<\/p>\n<pre>&lt;div class=\"alert alert-danger\"&gt;\r\n    <strong>{{ $slot }}<\/strong>\r\n&lt;\/div&gt;<\/pre>\n<p><strong>@component<\/strong>\u00a0\u3092\u4f7f\u3063\u3066\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre>@component('components.alert')\r\n    &lt;strong&gt;\u30a8\u30e9\u30fc\uff01&lt;\/strong&gt;&lt;br&gt;\r\n    \u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002\r\n@endcomponent<\/pre>\n<p>\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\u3068\u9055\u3046\u306e\u306f\u300c\u30b9\u30ed\u30c3\u30c8\u300d\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u3068\u3053\u308d\u3067\u3059\u3002\u3082\u3057\u3001\u500b\u5225\u306e\u30b9\u30ed\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u547c\u3073\u51fa\u3059\u5834\u6240\u3067\u6b21\u306e\u3088\u3046\u306b@slot(&#8216;****&#8217;)\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>@component('components.alert')\r\n    <strong>@slot('title')<\/strong>\r\n        \u8b66\u544a\uff01\r\n    <strong>@endslot<\/strong>\r\n    \u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002\r\n@endcomponent<\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u300c\u90e8\u5206\u30d5\u30a1\u30a4\u30eb\u300d\u306b\u306f\u30b9\u30ed\u30c3\u30c8\u540d\u306b\u5bfe\u5fdc\u3059\u308b\u300c$title\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;div class=\"alert alert-danger\"&gt;\r\n    &lt;div class=\"alert-title\"&gt;<strong>{{ $title }}<\/strong>&lt;\/div&gt;\r\n    <strong>{{ $slot }}<\/strong>\r\n&lt;\/div&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;div class=\"alert alert-danger\"&gt;\r\n    &lt;div class=\"alert-title\"&gt;\u8b66\u544a\uff01&lt;\/div&gt;\r\n    \u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002\r\n&lt;\/div&gt;<\/pre>\n<p>\u3064\u307e\u308a\u3001\u30a2\u30e9\u30fc\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u53ef\u5909\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u500b\u4eba\u7684\u306b\u306f\u30b5\u30d6\u30fb\u30d3\u30e5\u30fc\u306e\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u597d\u304d\u3067\u3059\u304c\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u9b45\u529b\u306e\u4e00\u3064\u3068\u3057\u3066\u3001<strong>\u72ec\u81ea\u306e\u540d\u524d\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u70b9<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u3001<strong>@alert()<\/strong>\u3067\u547c\u3073\u51fa\u3057\u304c\u3067\u304d\u308b\uff09<\/p>\n<p>\u3084\u308a\u65b9\u306f\u3001\u300c\/app\/Providers\/AppServiceProvider.php\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306eboot()\u5185\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u767b\u9332\u3057\u3066\u304a\u304f\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre>public function boot()\r\n{\r\n    <strong>\\Blade::component('components.alert', 'alert');<\/strong>\r\n}<\/pre>\n<p>\u203b\u300ccomponents.alert\u300d\u304c\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001<strong>@alert()\u301c@endalert<\/strong> \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>@alert(['title' =&gt; '\u8b66\u544a\uff01'])\r\n    \u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002\r\n@endalert<\/pre>\n<p>\u203b\u306a\u306e\u3067\u3001\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308b\u5834\u5408\u3068\u304b\u306b\u91cd\u5b9d\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h1>\uff18\uff0e\u914d\u5217\u3092json\u306b\u5909\u63db<\/h1>\n<p>\u914d\u5217\u3092json\u306b\u5909\u63db\u3059\u308b\u5834\u5408\u306f\u3001PHP\u95a2\u6570\u306ejson_encode()\u3092\u4f7f\u3044\u307e\u3059\u3051\u3069\u3001Blade\u306b\u306f@json\u3068\u3044\u3046\u66f8\u304d\u65b9\u304c\u3042\u3063\u3066\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\uff08\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\uff09<\/p>\n<pre>public function index() {\r\n\r\n    return view('home', [\r\n        '<strong>sections<\/strong>' =&gt; ['\u55b6\u696d\u90e8', '\u7dcf\u52d9\u90e8', '\u4f01\u753b\u90e8', '\u4eba\u4e8b\u90e8']\r\n    ]);\r\n\r\n}<\/pre>\n<p>\uff08\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff09<\/p>\n<pre>var numbers = <strong>@json($sections);<\/strong><\/pre>\n<p>\u7d50\u679c\u306f\u3001<\/p>\n<pre>var numbers = [\"\\u55b6\\u696d\\u90e8\",\"\\u7dcf\\u52d9\\u90e8\",\"\\u4f01\\u753b\\u90e8\",\"\\u4eba\\u4e8b\\u90e8\"];<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002JavaScript\u3068\u306e\u9023\u643a\u306b\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001Laravel\u306e\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u300d\u306f\u3001\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u3067json\u5f62\u5f0f\u306b\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u3082\u899a\u3048\u3066\u304a\u304f\u3068\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre>public function index() {\r\n\r\n    return view('home', [\r\n        'sections' =&gt; <strong>collect<\/strong>(['\u55b6\u696d\u90e8', '\u7dcf\u52d9\u90e8', '\u4f01\u753b\u90e8', '\u4eba\u4e8b\u90e8'])\r\n    ]);\r\n\r\n}<\/pre>\n<pre>var numbers = {!! <strong>$sections<\/strong> !!};<\/pre>\n<p>\u203b\u305f\u3060\u3057\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001{!! *** !!}\u3067\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u306a\u3044\u8868\u793a\u306e\u4ed5\u65b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\uff19\uff0e\uff5b\uff5b\uff5d\uff5d\u3072\u3052\u62ec\u5f27\u3092\u305d\u306e\u307e\u307e\u8868\u793a\u3059\u308b<\/h1>\n<p>Vue.js\u306a\u3069\u306f\u3001Blade\u3068\u540c\u3058\u304f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3072\u3052\u62ec\u5f27\u3092\u4f7f\u3063\u3066\u5909\u6570\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;div&gt;{{ test }}&lt;\/div&gt;<\/pre>\n<p>\u305f\u3060\u3001\u3053\u306e\u307e\u307e\u3060\u3068Blade\u304c\u3072\u3052\u62ec\u5f27\u5185\u3092\u5909\u63db\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u9023\u643a\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u767b\u5834\u3059\u308b\u306e\u304c<strong>@{{ **** }}<\/strong> \u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u3072\u3052\u62ec\u5f27\u304c\u5909\u63db\u3055\u308c\u305a\u3001\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&lt;div&gt;<strong>@<\/strong>{{ test }}&lt;\/div&gt;<\/pre>\n<p>\u8868\u793a\u7d50\u679c\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;div&gt;{{ test }}&lt;\/div&gt;<\/strong><\/pre>\n<p>\u203b\u3061\u306a\u307f\u306b\u3001\u3053\u3046\u3044\u3046\u3053\u3068\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u3001\u50d5\u306e\u5834\u5408\u3001vue.js\u3067\u306f\u3001\u300cv-text\u300d\u3082\u3057\u304f\u306f\u300cv-html\u300d\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>&lt;div <strong>v-text=\"test\"&gt;<\/strong>&lt;\/div&gt;\r\n&lt;div <strong>v-html=\"test\"&gt;<\/strong>&lt;\/div&gt;<\/pre>\n<h1>\uff11\uff10\uff0ePHP\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u3044<\/h1>\n<p>Blade\u306e\u4e2d\u3067\u3082PHP\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u3044\u3068\u304d\u304c\u305f\u307e\u306b\u3042\u3063\u305f\u308a\u3057\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5834\u5408\u306f\u3001<strong>@php\u301c@endphp<\/strong>\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>@php\r\n\r\n    echo 'PHP\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3057\u3066\u307e\u3059\u3002';\r\n\r\n@endphp<\/pre>\n<h1>\uff11\uff11\uff0e\u72ec\u81ea\u306e\u547d\u4ee4\u6587\u3092\u4f5c\u308a\u305f\u3044<\/h1>\n<p>Blade\u306f\u3001@*****\u3068\u3044\u3046\u5f62\u3067\u72ec\u81ea\u306e\u30b3\u30fc\u30c9\u547c\u3073\u51fa\u3057\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001@datetime\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<pre>@datetime(now())<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u65e5\u672c\u306e\u65e5\u4ed8\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u305f\u3089\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002<\/p>\n<pre>2018\u5e7404\u670804\u65e5 05:23<\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3001\u300c\/app\/Providers\/AppServiceProvider.php\u300d\u306eboot()\u5185\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre>public function boot()\r\n{\r\n    \\Blade::directive('datetime', function ($expression) {\r\n\r\n        <strong>return \"&lt;?php echo ($expression)-&gt;format('Y\u5e74m\u6708d\u65e5 H:i'); ?&gt;\";<\/strong>\r\n\r\n    });\r\n}<\/pre>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001return \u306e\u4e2d\u8eab\u304cPHP\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002\u6b63\u76f4\u306a\u6240\u3001\u3053\u3053\u306f\u3082\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u306b\u51fa\u6765\u308b\u3093\u3058\u3083\u306a\u3044\u304b\uff1f\u3068\u601d\u3063\u3066\u308b\u3093\u3067\u3059\u3051\u3069\u3001\u73fe\u72b6\u306f\u3053\u306e\u66f8\u304d\u65b9\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u72ec\u81ea\u306eif\u6587<\/h2>\n<p>\u3055\u3089\u306b\u3001Blade\u306f\u300c\u72ec\u81ea\u306eif\u6587\u300d\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4eca\u65e5\u304c\u6620\u753b\u9928\u3067\u6c34\u66dc\u65e5\u3060\u3068\u300c\u30ec\u30c7\u30a3\u30fc\u30b9\u30c7\u30fc\u300d\u3067\u5165\u5834\u6599\u304c\u5b89\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001\u540c\u3058\u3088\u3046\u306b\u300c\/app\/Providers\/AppServiceProvider.php\u300d\u306eboot()\u5185\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre>\\Blade::if('<strong>discount<\/strong>', function ($week_day) {\r\n    return ($week_day == 3);    \/\/ 3\u306f\u6c34\u66dc\u65e5\r\n});<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre><strong>@discount<\/strong>(date('w'))\r\n    \u4eca\u65e5\u306f1,000\u5186\r\n@else\r\n    \u4eca\u65e5\u306f1,800\u5186\r\n@enddiscount<\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fBlade\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u4fbf\u5229\u306a\u66f8\u304d\u65b9\u3092\u899a\u3048\u3066\u697d\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-418 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35.png\" alt=\"\" width=\"370\" height=\"240\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35-300x195.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u50d5\u304cLaravel\u3092\u4f7f\u3044\u59cb\u3081\u3066\u304b\u3089\u304b\u308c\u3053\u308c\uff12\u5e74\u3050\u3089\u3044\u304c\u7d4c\u3068\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3051\u3069\u3001\u4eca\u3067\u3082Laravel\u306e\u958b\u767a\u306f\u6d3b\u767a\u306b\u884c\u308f\u308c\u3066\u3044\u3066\u3001\u305f\u3063\u305f\u534a\u5e74\u904e\u304e\u305f\u3060\u3051\u3067\u3082 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=405\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u5fc5\u898b\uff01Laravel\uff085.6\uff09\u306eBlade\u3067\u3067\u304d\u308b\u3053\u3068\u300c\u307e\u3068\u3081\u300d&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":416,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[57],"class_list":["post-405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-blade"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=405"}],"version-history":[{"count":3,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions\/419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/416"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}