{"id":11073,"date":"2021-12-02T10:00:00","date_gmt":"2021-12-02T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=11073"},"modified":"2021-12-01T14:03:42","modified_gmt":"2021-12-01T05:03:42","slug":"laravel-%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e5%85%a5%e5%8a%9b%e5%86%85%e5%ae%b9%e3%81%ae%e5%be%a9%e5%85%83","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/11073","title":{"rendered":"Laravel \u30d5\u30a9\u30fc\u30e0\u5165\u529b\u5185\u5bb9\u306e\u5fa9\u5143"},"content":{"rendered":"\n<p>\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u8a2d\u7f6e\u3059\u308b\u5834\u5408\u306b\u7de8\u96c6\u30e2\u30fc\u30c9\u3067\u306f\u3001DB\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u521d\u671f\u5024\u3068\u3057\u3066\u8868\u793a\u3001<br>\u307e\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b\u3057\u305f\u5024\u3092\u5fa9\u5143\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br>\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001Laravel\u3067\u306fold\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u306e\u3067<br>\u305d\u306e\u65b9\u6cd5\u3092\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4>old\u95a2\u6570\u306b\u3064\u3044\u3066<\/h4>\n\n\n\n<p>{{ old(&#8216;name&#8217;) }}<\/p>\n\n\n\n<p>old\u95a2\u6570\u306e\u7b2c2\u5f15\u6570\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002DB\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5024\u3092<br>\u521d\u671f\u5024\u3068\u3057\u3066\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p>{{ old(&#8216;name&#8217;, &#8216;\u30c7\u30d5\u30a9\u30eb\u30c8\u5024&#8217;) }}<\/p>\n\n\n\n<h4><br>\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u4f8b<\/h4>\n\n\n\n<p>\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3067\u306e\u4f7f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p><code>&lt;input type=\"text\" name=\"name\" id=\"name\" value=\"{{ old('name', $recdata['name']) }}\"&gt;<\/code><\/p>\n\n\n\n<h4><br>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306e\u4f7f\u7528\u4f8b<\/h4>\n\n\n\n<p>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306f\u8907\u6570\u306e\u9078\u629e\u80a2\u306e\u4e2d\u304b\u3089\u3072\u3068\u3064\u3060\u3051\u9078\u629e\u3067\u304d\u308b\u5165\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<br>\u9078\u629e\u3057\u3066\u3044\u308b\u30dc\u30bf\u30f3\u306e\u5c5e\u6027\u306b\u300cchecked\u300d\u3092\u3064\u3051\u52a0\u3048\u308b\u305f\u3081old\u95a2\u6570\u306e\u5024\u304b\u3089\u6761\u4ef6\u5206\u5c90\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n@foreach ($list as $item)\n&lt;span&gt;&lt;input type=\"radio\" name=\"gender\" id=\"gender{{$item-&gt;code}}\" value=\"{{$item-&gt;code}}\"\n{{ old('gender', $recdata&#91;'gender'])==$item-&gt;code ? 'checked':'' }}&gt;\n&lt;label for=\"gender{{$item-&gt;code}}\" class=\"radio\"&gt;{{$item-&gt;value}}&lt;\/label&gt;&lt;\/span&gt;\n@endforeach\n<\/code><\/pre>\n\n\n\n<h4><br>\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306e\u4f7f\u7528\u4f8b<\/h4>\n\n\n\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306f\u8907\u6570\u306e\u9078\u629e\u80a2\u306e\u4e2d\u304b\u3089\u3072\u3068\u3064\u3060\u3051\u9078\u629e\u3067\u304d\u308b\u5165\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<br>\u9078\u629e\u3057\u3066\u3044\u308b\u30ea\u30b9\u30c8\u30a2\u30a4\u30c6\u30e0\u306e\u5c5e\u6027\u306b\u300cselected\u300d\u3092\u3064\u3051\u52a0\u3048\u308b\u305f\u3081old\u95a2\u6570\u306e\u5024\u304b\u3089\u6761\u4ef6\u5206\u5c90\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;select name=\"pref\" id=\"pref\"&gt;\n&lt;option value=\"\"&gt;\u90fd\u9053\u5e9c\u770c\u3092\u9078\u629e&lt;\/option&gt;\n@foreach ($prefs as $pref)\n  &lt;option value=\"{{$pref-&gt;code}}\" \n  {{ old('pref', $recdata&#91;'pref'])==$pref-&gt;code ? 'selected':'' }}&gt;\n  {{$pref-&gt;value}}&lt;\/option&gt;\n@endforeach\n&lt;\/select&gt;\n<\/code><\/pre>\n\n\n\n<h4><br>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u4f8b<\/h4>\n\n\n\n<p>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306f\u8907\u6570\u306e\u9078\u629e\u80a2\u306e\u4e2d\u304b\u3089\u8907\u6570\u9078\u629e\u53ef\u80fd\u306a\u5165\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<br>\u8907\u6570\u9078\u629e\u53ef\u80fd\u306a\u305f\u3081\u914d\u5217\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u9078\u629e\u3057\u3066\u3044\u308b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u5c5e\u6027\u306b\u300cchecked\u300d\u3092\u3064\u3051\u52a0\u3048\u308b\u305f\u3081old\u95a2\u6570\u306e\u5024\u304b\u3089\u6761\u4ef6\u5206\u5c90\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n@foreach ($list as $item)\n&lt;span&gt;&lt;input type=\"checkbox\" name=\"fav_player&#91;]\" id=\"fav_player{{$item-&gt;code}}\" value=\"{{$item-&gt;code}}\"\n@if (is_array(old(\"fav_player\", $recdata&#91;'fav_player'])) &amp;&amp; in_array($item-&gt;code, old('fav_player', $recdata&#91;'fav_player']))) checked @endif&gt;\n&lt;label for=\"fav_player{{$item-&gt;code}}\" class=\"checkbox\"&gt;{{$item-&gt;value}}&lt;\/label&gt;&lt;\/span&gt;\n@endforeach\n<\/code><\/pre>\n\n\n\n<p><br><br>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11073\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/11073\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Laravel \u30d5\u30a9\u30fc\u30e0\u5165\u529b\u5185\u5bb9\u306e\u5fa9\u5143\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11073\" data-text=\"Laravel \u30d5\u30a9\u30fc\u30e0\u5165\u529b\u5185\u5bb9\u306e\u5fa9\u5143\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11073\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11073\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u8a2d\u7f6e\u3059\u308b\u5834\u5408\u306b\u7de8\u96c6\u30e2\u30fc\u30c9\u3067\u306f\u3001DB\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u521d\u671f\u5024\u3068\u3057\u3066\u8868\u793a\u3001\u307e\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b\u3057\u305f\u5024\u3092\u5fa9\u5143\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001Laravel\u3067\u306fold\u95a2\u6570\u3092 [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11073"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=11073"}],"version-history":[{"count":10,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11073\/revisions"}],"predecessor-version":[{"id":11092,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11073\/revisions\/11092"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=11073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=11073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=11073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}