{"id":734,"date":"2019-05-12T12:46:49","date_gmt":"2019-05-12T03:46:49","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=734"},"modified":"2019-07-07T12:42:43","modified_gmt":"2019-07-07T03:42:43","slug":"blade%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88-%e5%85%b1%e9%80%9a%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%ae%e5%88%a9%e7%94%a8-laravel5-8","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=734","title":{"rendered":"Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 \u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5229\u7528  Laravel5.8"},"content":{"rendered":"<div class=\"overview_box\">\n<a href=\"https:\/\/dennie.tokyo\/it\/?p=695\" rel=\"noopener noreferrer\" target=\"_blank\">\u524d\u56de<\/a>\u306f\u7c21\u5358\u306a\u753b\u9762\u8868\u793a\u3092\u884c\u3044\u307e\u3057\u305f\u3002<!--more--><br \/>\nLaravel\u3067\u306fview\u306bblade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\nblade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u304c\u5b58\u5728\u3057\u3001php\u306b\u3088\u308b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u30b9\u30de\u30fc\u30c8\u306b\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fblade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u305f\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4f7f\u7528\u4f8b\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\n<\/div>\n<h5 class=\"title\">\u3084\u308a\u305f\u3044\u3053\u3068<\/h5>\n<div class=\"sentence_box\">\n\u30a6\u30a7\u30d6\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7528\u9014\u6bce\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u4e8b\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30f3\u30c4\u4ee5\u5916\u306f\u5171\u901a\u3067\u3042\u308b\u70ba\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u4ee5\u5916\u306f\u5171\u901a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u30661\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u5225\u30d5\u30a1\u30a4\u30eb\u3078\u5207\u308a\u51fa\u3057\u305f\u753b\u9762\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\n<\/div>\n<div class=\"sentence_box\" style=\"margin-top:40px;\">\n<table class=\"table\">\n<thead>\n<tr>\n<th scope=\"col\">\u30d5\u30a1\u30a4\u30eb\u540d<\/th>\n<th scope=\"col\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>resources\/views\/layouts\/main.blade.php<\/td>\n<td>\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8<\/td>\n<\/tr>\n<tr>\n<td>resources\/views\/inheritance\/inheritance.blade.php<\/td>\n<td>\u30b3\u30f3\u30c6\u30f3\u30c4\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<tr>\n<td>routes\/web.php<\/td>\n<td>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h5 class=\"title\">\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8<\/h5>\n<div class=\"sentence_box\">\n\u4ee5\u4e0b\u306f\u3001\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4f8b\u3067\u3059\u3002<br \/>\n@yield\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u4ed6\u306eview\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3092 &#8220;resources\/views\/layouts\/main.blade.php&#8221; \u3068\u3057\u914d\u7f6e\u3057\u307e\u3059\u3002\n<\/div>\n<pre class=\"lang:default decode:true \" title=\"main.blade.php\" >&lt;html&gt;\r\n    &lt;head&gt;&lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;main&gt;\r\n          @yield('content')\r\n        &lt;\/main&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h5 class=\"title\">\u30b3\u30f3\u30c6\u30f3\u30c4\u30d5\u30a1\u30a4\u30eb<\/h5>\n<div class=\"sentence_box\">\n\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8(main.blade.php)\u3092\u8aad\u307f\u8fbc\u3080\u306b\u306f@extends\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n@extends\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u5f15\u6570\u3078\u3001\u5229\u7528\u3057\u305f\u3044\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u201cresources\/views\/layouts\/main.blade.php\u201d\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002\n<\/div>\n<p><\/p>\n<div class=\"sentence_box\">\n@section\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u3001\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u3078\u8868\u793a\u3055\u305b\u305f\u3044\u5185\u5bb9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n@section\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u7b2c\u4e00\u5f15\u6570\u306e\u5024\u3068\u3001\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u4f7f\u7528\u3057\u305f@yield\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u7b2c\u4e00\u5f15\u6570\u3092\u540c\u3058\u306b\u3057\u307e\u3059\u3002\u4eca\u56de\u306f&#8221;content&#8221;\u3068\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092 &#8220;resources\/views\/inheritance\/inheritance.blade.php&#8221; \u3068\u3057\u914d\u7f6e\u3057\u307e\u3059\u3002\n<\/div>\n<pre class=\"lang:default decode:true \" title=\"inheritance.blade.php\" >&lt;!-- \u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u3002 --&gt;\r\n@extends('layouts.main')\r\n\r\n&lt;!-- \u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8\u3078\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3002 --&gt;\r\n@section('content')\r\n  &lt;p&gt;\u30b3\u30f3\u30c6\u30f3\u30c4&lt;\/p&gt;\r\n@endsection<\/pre>\n<div class=\"sub_title\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/div>\n<div class=\"sentence_box\">\n\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u6307\u5b9a\u3059\u308b\u30d3\u30e5\u30fc\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u306a\u304f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u307e\u3059\u3002<br \/>\n&#8220;resources\/views\/inheritance\/inheritance.blade.php&#8221; \u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001Laravel\u3067\u306f &#8220;resources\/views&#8221; \u304cview\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u304d\u5834\u6240\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u6307\u5b9a\u3059\u308b\u306e\u306f&#8221;resources\/views&#8221;\u4ee5\u4e0b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3067\u306f\u3001&#8221;\/inheritance\/inheritance.blade.php&#8221; \u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"web.php\" >Route::get('\/inheritance', function () {\r\n    return view('inheritance.inheritance');\r\n});<\/pre>\n<h5 class=\"title\">\u307e\u3068\u3081<\/h5>\n<div class=\"sentence_box\">\n\u6b21\u56de\u306f<a href=\"https:\/\/dennie.tokyo\/it\/?p=784\" rel=\"noopener noreferrer\" target=\"_blank\">Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u4f7f\u7528\u4f8b<\/a>\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306f\u7c21\u5358\u306a\u753b\u9762\u8868\u793a\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":968,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,4],"tags":[],"class_list":["post-734","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-php"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=734"}],"version-history":[{"count":43,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/734\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/734\/revisions\/905"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/968"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}