{"id":1067,"date":"2019-01-24T10:51:59","date_gmt":"2019-01-24T01:51:59","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1067"},"modified":"2019-01-24T12:09:47","modified_gmt":"2019-01-24T03:09:47","slug":"post-1067","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2019\/01\/24\/post-1067\/","title":{"rendered":"Excel\u3067seeder\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>Excel\u3067seeder\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u9806\u8abf\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u7d44\u307f\u3042\u304c\u3063\u3066\u304f\u308b\u3068\u81ea\u5206\u306e\u610f\u56f3\u3057\u305f\u52d5\u304d\u3068\u306a\u308b\u304b\u78ba\u8a8d\u306e\u305f\u3081\u306bSQL\u306b\u30c7\u30fc\u30bf\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3084\u5b9f\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3053\u306e\u6642\u306b\u4f7f\u3048\u308b\u306e\u304cSeeder\u3002<br \/>\n\u79c1\u306f\u81ea\u5206\u3082\u4f7f\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u3044\u308b\u306e\u3067\u30d5\u30a7\u30a4\u30af\u30c7\u30fc\u30bf\u306e\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067Seeder\u4e00\u629e\u3067\u3059\u3002<\/p>\n<p>\u5546\u54c1\u60c5\u5831\u3060\u3051\u3067\u3082\u304b\u306a\u308a\u306e\u91cf\u304c\u3042\u308b\u306e\u3067\uff11\u500b\u3065\u3064\u624b\u6253\u3061\u3059\u308b\u306e\u306f\u7121\u7406\u3002<br \/>\n\u3068\u306a\u308c\u3070\u3001Excel\u306e\u30c7\u30fc\u30bf\u3092\u30c6\u30fc\u30d6\u30eb\u306e\u5f62\u306b\u307e\u3068\u3081\u3066Seeder\u4f5c\u308c\u306a\u3044\u304b\u306a\u3068\u6a21\u7d22\u3057\u307e\u3059\u3002<\/p>\n<h3>\u00a0Seeder\u306b\u5165\u308c\u308b\u306e\u306f\u6240\u8a6e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf<\/h3>\n<p>\u7d50\u5c40\u306f\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3067\u66f8\u304f\u308f\u3051\u3067\u3059\u304b\u3089\u3001\u6587\u5b57\u5217\u5408\u6210\u3057\u3066\u3057\u307e\u3048\u3070\u7c21\u5358\u3067\u3059\u3002<\/p>\n<div class=\"borderBox\">$param = [<br \/>\n'shop_id' =&gt;'0',<br \/>\n'item_id' =&gt;'5453',<br \/>\n'namae' =&gt;'\u30a8\u30f3\u30dc\u30b9\u30d5\u30e9\u30a4\u30d1\u30f3',<br \/>\n'text' =&gt;'\u30a8\u30f3\u30dc\u30b9\u52a0\u5de5',<br \/>\n'created_at' =&gt;'2018-01-11 12:37',<br \/>\n'updated_at' =&gt;'2018-01-11 12:37'<br \/>\n];<br \/>\nDB::table('itemphrases')-&gt;insert($param);<\/div>\n<p>1\u884c\u3054\u3068\u306b\u4e0a\u8a18\u306e\u69d8\u306a\u30c6\u30ad\u30b9\u30c8\u60c5\u5831\u3092\u4f5c\u6210\u3057\u3066\u3057\u307e\u3048\u3070\u4e00\u6c17\u306bDB\u306b\u60c5\u5831\u3092\u6d41\u3057\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<h3>Seeder\u4f5c\u6210\u306b\u4f7f\u3046Excel\u95a2\u6570<\/h3>\n<p>\u4f7f\u3046\u95a2\u6570\u306f\uff11\u3064\u3060\u3051\u3010\uff06\u3011\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3053\u3093\u306aExcel\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>A<\/th>\n<th>B<\/th>\n<th>C<\/th>\n<th>D<\/th>\n<th>E<\/th>\n<th>F<\/th>\n<th>G<\/th>\n<\/tr>\n<tr>\n<th>1<\/th>\n<td>shop_id<\/td>\n<td>item_id<\/td>\n<td>name<\/td>\n<td>text<\/td>\n<td>created_at<\/td>\n<td>updated_at<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<th>2<\/th>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">5453<\/td>\n<td style=\"text-align: left;\">\u30a8\u30f3\u30dc\u30b9\u30d5\u30e9\u30a4\u30d1\u30f3<\/td>\n<td style=\"text-align: left;\">\u30a8\u30f3\u30dc\u30b9\u52a0\u5de5<\/td>\n<td style=\"text-align: left;\">2018-01-11 12:37<\/td>\n<td style=\"text-align: left;\">2018-01-11 12:37<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>G\u5217\u306e\uff12\u884c\u76ee\u4ee5\u964d\u306b\u3053\u3093\u306a\u5f0f\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<div class=\"pointBox\">\n<p>=\"$param = ['\"&amp;A$1&amp;\"' =&gt;'\"&amp;A2&amp;\",'\"&amp;B$1&amp;\"' =&gt;'\"&amp;B2&amp;\"','\"&amp;C$1&amp;\"' =&gt;'\"&amp;C2&amp;\"','\"&amp;D$1&amp;\"' =&gt;'\"&amp;D2&amp;\"','\"&amp;E$1&amp;\"' =&gt;'\"&amp;E2&amp;\"','\"&amp;F$1&amp;\"' =&gt;'\"&amp;F2&amp;\"','\"&amp;G$1&amp;\"' =&gt;'\"&amp;G2&amp;\"'];DB::table('itemphrases')-&gt;insert($param);\"<\/p>\n<\/div>\n<p>\u203bSeeder\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u306f\u5176\u3005\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5f62\u306b\u76f4\u3057\u3066\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u5f0f\u3092\uff12\u884c\u76ee\u306b\u8a18\u8f09\u3057\u3001\u5f8c\u306f\u30ec\u30b3\u30fc\u30c9\u306e\u304a\u5c3b\u307e\u3067\u30b3\u30d4\u30fc\u3057\u3066\u3042\u3052\u308c\u3070Seeder\u306e\u5143\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u5f8c\u306f\u76ee\u7684\u306e\u30b7\u30fc\u30c0\u30fc\u306b\u30b3\u30d4\u30da\u3057\u3066\u5b9f\u884c\u3059\u308c\u3070\u7c21\u5358\u306b\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3044\u3084\u3041\u4fbf\u5229\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>Excel\u3055\u3093\u3063\u3066\u91cd\u304f\u3066\u4f7f\u3044\u306b\u304f\u3044\u3051\u3069\u3001\u3053\u3046\u3044\u3046\u6642\u306b\u983c\u308a\u306b\u306a\u308b\u306e\u3082\u3084\u3063\u3071\u308aExcel\u3055\u3093\u3002<\/p>\n<p>\u624b\u653e\u305b\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u3067seeder\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 \u9806\u8abf\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u7d44\u307f\u3042\u304c\u3063\u3066\u304f\u308b\u3068\u81ea\u5206\u306e\u610f\u56f3\u3057\u305f\u52d5\u304d\u3068\u306a\u308b\u304b\u78ba\u8a8d\u306e\u305f\u3081\u306bSQL\u306b\u30c7\u30fc\u30bf\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3084\u5b9f\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3053\u306e\u6642\u306b\u4f7f\u3048\u308b\u306e\u304cSee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":85,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72],"tags":[61,153,99,98,296,49,58,45],"class_list":["post-1067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ec-system-do","tag-excel","tag-laravel","tag-mysql","tag-php","tag-seeder","tag-49","tag-58","tag-45"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/08\/pc.jpg?fit=1600%2C900&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1067"}],"version-history":[{"count":1,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1067\/revisions"}],"predecessor-version":[{"id":1068,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1067\/revisions\/1068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/85"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}