{"id":1816,"date":"2018-10-28T07:22:59","date_gmt":"2018-10-27T22:22:59","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=1816"},"modified":"2018-10-28T07:23:00","modified_gmt":"2018-10-27T22:23:00","slug":"laravel-%e3%81%a7%e6%b3%a8%e6%96%87%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92google%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e3%81%ab%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=1816","title":{"rendered":"Laravel \u3067\u6ce8\u6587\u30c7\u30fc\u30bf\u3092Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8ffd\u52a0\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u307e\u3067\u306f\u30c7\u30fc\u30bf\u3092\u8868\u3067\u7ba1\u7406\u3057\u3088\u3046\u3068\u306a\u308b\u3068\u3001\u307b\u307c\uff11\uff10\uff10\uff05\u306e\u78ba\u7387\u3067Excel\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u4eca\u3067\u3082\u3053\u306e\u5f71\u97ff\u3067\u4e3b\u306b\u4f01\u696d\u5185\u3067\u306fExcel\u304c\u91cd\u5b9d\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3067\u3082\u3084\u306f\u308a\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u6642\u4ee3\u306e\u73fe\u5728\u3001\u305d\u308c\u3082\u5c11\u3057\u305a\u3064\u5909\u5316\u306e\u5146\u3057\u304c\u898b\u3048\u3066\u304d\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\uff01<br \/>\nGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306f\u8ab0\u3067\u3082\u7121\u6599\u3067\u4f7f\u3048\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u5171\u540c\u3067\u30c7\u30fc\u30bf\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u6700\u8fd1\u3060\u3068\u30de\u30af\u30ed\u306b\u3082\u5bfe\u5fdc\u3057\u305f\u308a\u3068Excel\u3092\u4f7f\u308f\u305a\u3068\u3082\u9ad8\u6a5f\u80fd\u306a\u8868\u8a08\u7b97\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002\uff08\u3055\u3089\u306b\u3001\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u3067\u3069\u3053\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306a\u3069\u30e1\u30ea\u30c3\u30c8\u306f\u591a\u6570\u3067\u3059\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u5b9f\u306fPHP\u304b\u3089\u3067\u3082\u3053\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u77e5\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<strong>\u4f8b\u3048\u3070\u3001\u6ce8\u6587\u304c\u3042\u308b\u3054\u3068\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u305d\u306e\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u6a5f\u80fd\u3060\u3063\u3066\u5b9f\u73fe\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fPHP\uff08Laravel\uff09\u304b\u3089Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u3087\u3046\uff01\u305c\u3072\u5b66\u7fd2\u306e\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1785 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p>\u203b \u958b\u767a\u74b0\u5883Laravel 5.7<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u6ce8\u6587\u3092\u53d7\u3051\u305f\u3089\u3001\u300c\u5546\u54c1\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\uff11\u884c\u305a\u3064\u8ffd\u52a0\u3057\u3066\u3044\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\uff08\u6ce8\u6587\u90e8\u5206\u306f\u30e9\u30f3\u30c0\u30e0\u306b\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059\uff09<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u958b\u767a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h1>\u6e96\u5099\u3059\u308b\u3053\u3068<\/h1>\n<h2>Google API\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3059\u308b<\/h2>\n<p>\u307e\u305a\u3001Google\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u72b6\u614b\u3067\u3001<a href=\"https:\/\/console.cloud.google.com\" target=\"_blank\" rel=\"noopener\">Google API Console<\/a>\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1838\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_1.png\" alt=\"\" width=\"384\" height=\"45\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_1.png 384w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_1-300x35.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30da\u30fc\u30b8\u5de6\u4e0a\u306e\u8d64\u67a0\u306e\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3068\u3044\u3046\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3044\u3046\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1839\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_2.png\" alt=\"\" width=\"750\" height=\"591\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_2.png 750w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_2-300x236.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p>\u300c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3044\u3046\u30da\u30fc\u30b8\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\uff08\u3053\u3053\u3067\u306fDev Test\uff09\u3068\u3057\u3066\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1840\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_3.png\" alt=\"\" width=\"568\" height=\"450\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_3.png 568w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_3-300x238.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>\u3053\u308c\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001<code>Google Spreadsheets API<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30da\u30fc\u30b8\u5de6\u306b\u3042\u308b\u30e1\u30cb\u30e5\u30fc\u306eAPI\u3068\u30b5\u30fc\u30d3\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1848\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_4.png\" alt=\"\" width=\"294\" height=\"469\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_4.png 294w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_4-188x300.png 188w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001API\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u6709\u52b9\u5316\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1847\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_5.png\" alt=\"\" width=\"664\" height=\"213\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_5.png 664w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_5-300x96.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/p>\n<p>API\u3092\u691c\u7d22\u3059\u308b\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1846\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_6.png\" alt=\"\" width=\"714\" height=\"186\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_6.png 714w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_6-300x78.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>\u691c\u7d22\u30d0\u30fc\u306b\u300csheet\u300d\u3068\u5165\u529b\u3059\u308b\u3068API\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1845\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_7.png\" alt=\"\" width=\"829\" height=\"412\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_7.png 829w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_7-300x149.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_7-768x382.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u6b21\u306b\u8868\u793a\u3055\u308c\u305f\u30da\u30fc\u30b8\u306e\u300c\u6709\u52b9\u306b\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1844\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_8.png\" alt=\"\" width=\"616\" height=\"221\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_8.png 616w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_8-300x108.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/p>\n<p>Google Sheets API\u304c\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3067\u3001\u7d9a\u3051\u3066\u30da\u30fc\u30b8\u53f3\u5074\u306b\u3042\u308b\u300c\u8a8d\u8a3c\u60c5\u5831\u3092\u4f5c\u6210\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1843\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_9.png\" alt=\"\" width=\"1068\" height=\"78\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_9.png 1068w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_9-300x22.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_9-768x56.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_9-1024x75.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u6b21\u306e\u30da\u30fc\u30b8\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<\/p>\n<ul>\n<li>\u4f7f\u7528\u3059\u308bAPI\u3000\u30fb\u30fb\u30fb\u3000Google Sheets API<\/li>\n<li>API\u3092\u547c\u3073\u51fa\u3059\u5834\u6240\u3000\u30fb\u30fb\u30fb\u3000\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc<\/li>\n<li>\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3000\u30fb\u30fb\u30fb\u3000\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf<\/li>\n<li>App Engine \u307e\u305f\u306f Compute Engine \u3067\u3053\u306e API \u3092\u4f7f\u7528\u3059\u308b\u4e88\u5b9a\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u3000\u30fb\u30fb\u30fb\u3000\u3044\u3044\u3048\u3001\u4f7f\u7528\u3057\u307e\u305b\u3093<\/li>\n<\/ul>\n<p>\u3092\u9078\u629e\u3057\u3066\u300c\u5fc5\u8981\u306a\u8a8d\u8a3c\u60c5\u5831\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1842\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_10.png\" alt=\"\" width=\"579\" height=\"619\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_10.png 579w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_10-281x300.png 281w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/p>\n<p>\u8a8d\u8a3c\u60c5\u5831\u306e\u8ffd\u52a0\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<\/p>\n<ul>\n<li>\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u540d<\/li>\n<li>\u5f79\u5272<\/li>\n<\/ul>\n<p>\u3092\u5165\u529b\uff06\u9078\u629e\u3057\u3066\u6b21\u3078\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1841\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_11.png\" alt=\"\" width=\"517\" height=\"433\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_11.png 517w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_11-300x251.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\n<p>\u3059\u308b\u3068\u6b21\u306e\u8868\u793a\u304c\u51fa\u3066\u3001\u81ea\u52d5\u7684\u306b\u8a8d\u8a3c\u306b\u5fc5\u8981\u306aJSON\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1849\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_12.png\" alt=\"\" width=\"502\" height=\"242\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_12.png 502w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_cloud_platform_12-300x145.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJSON\u30d5\u30a1\u30a4\u30eb\u306f\u5f8c\u3067\u4f7f\u3046\u306e\u3067\u3001<code>credentials.json<\/code>\u3068\u3044\u3046\u540d\u524d\u306b\u5909\u3048\u3066<code>storage\/app\/json\/<\/code>\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1851\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-16-26-01.png\" alt=\"\" width=\"356\" height=\"149\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-16-26-01.png 356w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-16-26-01-300x126.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/p>\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u300c\u5546\u54c1\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u300d\u3068\u3044\u3046\u30b7\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u3001\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/docs.google.com\/spreadsheets\" target=\"_blank\" rel=\"noopener\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/a>\u3092\u958b\u3044\u3066\u6b21\u306e\u8d64\u67a0\u306e\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1852\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_1.png\" alt=\"\" width=\"574\" height=\"280\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_1.png 574w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_1-300x146.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>\u3059\u308b\u3068\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u5de6\u4e0a\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u300c\u5546\u54c1\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u300d\u3068\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1853\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_2.png\" alt=\"\" width=\"447\" height=\"183\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_2.png 447w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_2-300x123.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\n<p>\u6b21\u306b\u3001\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u3042\u308b\u5171\u6709\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1854\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_3.png\" alt=\"\" width=\"328\" height=\"124\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_3.png 328w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_3-300x113.png 300w\" sizes=\"auto, (max-width: 328px) 100vw, 328px\" \/><\/p>\n<p>\u5171\u6709\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u306b\u5148\u307b\u3069\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJSON\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1855\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_4.png\" alt=\"\" width=\"567\" height=\"385\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_4.png 567w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_4-300x204.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>\u203b \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u3001JSON\u30d5\u30a1\u30a4\u30eb\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>\"client_email\": \"<strong>dev-test@****************.iam.gserviceaccount.com<\/strong>\",<\/pre>\n<p>\u3053\u308c\u3067<code>Google Sheets API<\/code>\u3068\u306e\u5171\u6709\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u306b\u5099\u3048\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6ce8\u6587\u30c7\u30fc\u30bf\u306e\u30d8\u30c3\u30c0\u30fc\u90e8\u5206\u3092\u4f5c\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1858\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_6.png\" alt=\"\" width=\"954\" height=\"64\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_6.png 954w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_6-300x20.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_6-768x52.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h2>Google Client Library\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>Google API\u306f\u3001PHP\u304b\u3089\u306e\u64cd\u4f5c\u304c\u3057\u3084\u3059\u3044\u3088\u3046\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082\u3001<code>composer<\/code>\u304c\u4f7f\u3048\u308b\u306e\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u4e00\u767a\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>composer require google\/apiclient:^2.0<\/strong><\/pre>\n<p>\u203b \u305f\u3060\u3057\u3001Laravel\u7528\u306b\u4f5c\u6210\u3055\u308c\u305f\u3082\u306e\u3067\u306f\u306a\u3044\u306e\u3067Facade\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n<h2>\u30c6\u30b9\u30c8\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u4f5c\u308b<\/h2>\n<p>\u672c\u6765\u306a\u3089\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u304b\u3089\u6ce8\u6587\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u6ce8\u6587\u60c5\u5831\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u8ffd\u52a0\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u3055\u3059\u304c\u306b\u4eca\u56de\u306e\u30c6\u30fc\u30de\u304b\u3089\u306f\u5916\u308c\u3066\u3057\u307e\u3046\u306e\u3067<code>for()<\/code>\u30eb\u30fc\u30d7\u3067\u30c6\u30b9\u30c8\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u30ea\u30a2\u30eb\u306a\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b<code>Faker<\/code>\u3092\u4f7f\u3063\u3066\u304a\u5ba2\u3055\u3093\u306e\u540d\u524d\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>$faker = \\Faker\\Factory::create('ja_JP');<\/pre>\n<p>\u3067\u306f<code>for()<\/code>\u30eb\u30fc\u30d7\u3055\u305b\u3066\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<pre>$faker = \\Faker\\Factory::create('ja_JP');\n\nfor($i = 0 ; $i &lt; 5 ; $i++) {\n\n    $customer_name = $faker-&gt;name;\n    $product_id = array_random([1, 2, 3]);\n    $qty = array_random([3, 5, 10]);\n    $amount = array_random([1000, 5000, 10000]);\n    <strong>$order = [<\/strong>\n<strong>        $customer_name,            \/\/ \u304a\u5ba2\u3055\u3093\u306e\u540d\u524d<\/strong>\n<strong>        $product_id,               \/\/ \u5546\u54c1ID<\/strong>\n<strong>        now()-&gt;toDateTimeString(), \/\/ \u6ce8\u6587\u65e5\u6642<\/strong>\n<strong>        $amount,                   \/\/ \u5024\u6bb5<\/strong>\n<strong>        $qty,                      \/\/ \u500b\u6570<\/strong>\n<strong>        8,                         \/\/ \u7a0e\u91d1<\/strong>\n<strong>    ];<\/strong>\n    print_r($order);\n\n}<\/pre>\n<p>\u5b9f\u969b\u306b\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1869\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-18-16-45.png\" alt=\"\" width=\"225\" height=\"595\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-18-16-45.png 225w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-18-16-45-113x300.png 113w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/p>\n<p>\u3067\u306f\u3001\u6e96\u5099\u306f\u3059\u3079\u3066\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306e\u9805\u76ee\u304b\u3089\u5b9f\u969b\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h1>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<\/h1>\n<h2>\u4f5c\u6210\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eID\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u307e\u305a\u300c\u5546\u54c1\u306e\u6ce8\u6587\u30c7\u30fc\u30bf\u300d\u30b7\u30fc\u30c8\u306eID\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>ID\u306fURL\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<span style=\"font-size: 1rem;\">\u30b7\u30fc\u30c8\u3092\u8868\u793a\u3057\u3066\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1856\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_5.png\" alt=\"\" width=\"752\" height=\"40\" \/><\/p>\n<p><code>https:\/\/docs.google.com\/spreadsheets\/d\/<strong>\uff08\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eID\uff09<\/strong>\/edit#gid=0<\/code><\/p>\n<h2>Google_Service_Sheets\u3092\u53d6\u5f97\u3059\u308b\u30e2\u30c7\u30eb\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001<code>Google_Client<\/code>\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\uff09\u3068<code>credentials.json<\/code>\uff08\u4fdd\u5b58\u6e08\u307f\uff09\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\uff06\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u7528\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u30e2\u30c7\u30eb\u3092\u3064\u304f\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3002<\/p>\n<pre><strong>php artisan make:model GoogleSheet<\/strong><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\n\nnamespace App;\n\nclass GoogleSheet\n{\n<strong>    public static function instance() {<\/strong>\n\n<strong>        $credentials_path = storage_path('app\/json\/credentials.json');<\/strong>\n<strong>        $client = new \\Google_Client();<\/strong>\n<strong>        $client-&gt;setScopes([\\Google_Service_Sheets::SPREADSHEETS]);<\/strong>\n<strong>        $client-&gt;setAuthConfig($credentials_path);<\/strong>\n<strong>        return new \\Google_Service_Sheets($client);<\/strong>\n\n<strong>    }<\/strong>\n}<\/pre>\n<p>\u203b DB\u6a5f\u80fd\u306f\u5fc5\u8981\u306a\u3044\u306e\u3067\u3001<code>extends<\/code>\u90e8\u5206\u306f\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8a2d\u7f6e\u3057\u305f<code>credentials.json<\/code>\u3092\u4f7f\u3063\u3066<code>Google_Client<\/code>\u3067\u8a8d\u8a3c\u3001\u305d\u3057\u3066<code>Google_Service_Sheets<\/code>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u30b7\u30fc\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u3044\u3064\u3067\u3082\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>$sheets = \\App\\GoogleSheet::instance();<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3046\u307e\u304f\u3044\u304f\u304b\u3069\u3046\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30d8\u30c3\u30c0\u30fc\u90e8\u5206\u306e\u9805\u76ee\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>$sheets = \\App\\GoogleSheet::instance();\n\n$sheet_id = '<strong>\uff08\u3042\u306a\u305f\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID\uff09<\/strong>';\n$range = 'A1:H1';\n$response = $sheets-&gt;spreadsheets_values-&gt;get($sheet_id, $range);\n$values = $response-&gt;getValues();\nprint_r($values);<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1864\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-26-17-28-17.png\" alt=\"\" width=\"217\" height=\"209\" \/><\/p>\n<h2>\u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u8ffd\u52a0\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u3084\u3063\u3068\u672c\u984c\u306b\u5230\u7740\u3057\u307e\u3057\u305f\u3002<br \/>\n\u5b9f\u969b\u306b\u6ce8\u6587\u30c7\u30fc\u30bf\uff08\u5148\u307b\u3069\u4f5c\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\uff09\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3078\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>$sheets = \\App\\GoogleSheet::instance();\n$sheet_id = '<strong>\uff08\u3042\u306a\u305f\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID\uff09<\/strong>';\n$faker = \\Faker\\Factory::create('ja_JP');\n\nfor($i = 0 ; $i &lt; 5 ; $i++) {\n\n    $customer_name = $faker-&gt;name;\n    $product_id = array_random([1, 2, 3]);\n    $qty = array_random([3, 5, 10]);\n    $amount = array_random([1000, 5000, 10000]);\n\n    $order = [\n        $customer_name,            \/\/ \u304a\u5ba2\u3055\u3093\u306e\u540d\u524d\n        $product_id,               \/\/ \u5546\u54c1ID\n        now()-&gt;toDateTimeString(), \/\/ \u6ce8\u6587\u65e5\u6642\uff08\u4eca\u306e\u6642\u9593\uff09\n        $amount,                   \/\/ \u5024\u6bb5\n        $qty,                      \/\/ \u500b\u6570\n        8,                         \/\/ \u7a0e\u91d1\n<strong>        '=D:D*E:E',                \/\/ \u5c0f\u8a08<\/strong>\n<strong>        '=G:G*(1+F:F*0.01)'        \/\/ \u5408\u8a08\uff08\u5c0f\u8a08 + \u7a0e\u984d\uff09<\/strong>\n    ];\n\n    <strong>$values = new \\Google_Service_Sheets_ValueRange();<\/strong>\n<strong>    $values-&gt;setValues([<\/strong>\n<strong>        'values' =&gt; $order<\/strong>\n<strong>    ]);<\/strong>\n<strong>    $params = ['valueInputOption' =&gt; 'USER_ENTERED'];<\/strong>\n<strong>    $sheets-&gt;spreadsheets_values-&gt;append(<\/strong>\n<strong>        $sheet_id,<\/strong>\n<strong>        'A1',<\/strong>\n<strong>        $values,<\/strong>\n<strong>        $params<\/strong>\n<strong>    );<\/strong>\n\n}<\/pre>\n<p>\u307e\u305a\u3001\u6ce8\u6587\u30c7\u30fc\u30bf<code>$order<\/code>\u306b\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u300c\u5c0f\u8a08\u300d\u3068\u300c\u5408\u8a08\u300d\u3092\u81ea\u52d5\u7684\u306b\u8a08\u7b97\u3059\u308b\u5f0f\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>$sheets-&gt;spreadsheets_values-&gt;append()<\/code>\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1870\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_7.png\" alt=\"\" width=\"880\" height=\"148\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_7.png 880w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_7-300x50.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_7-768x129.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\uff01<br \/>\n\u5c0f\u8a08\u3084\u5408\u8a08\u3082\u3046\u307e\u304f\u8a08\u7b97\u3057\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u304a\u307e\u3051<\/h1>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u91d1\u984d\u306f\u5186\u8868\u8a18\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u3001\u5024\u6bb5\u306e\u5217\u300cD\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e\u72b6\u614b\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1872\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_8.png\" alt=\"\" width=\"457\" height=\"206\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_8.png 457w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_8-300x135.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/p>\n<p>\u6b21\u306b\u8868\u793a\u5f62\u5f0f \u279c \u6570\u5b57 \u279c \u901a\u8ca8\uff08\u7aef\u6570\u5207\u308a\u6368\u3066\uff09\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1871\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_9.png\" alt=\"\" width=\"454\" height=\"518\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_9.png 454w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_9-263x300.png 263w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001D\u5217\uff08\u5024\u6bb5\uff09\u3060\u3051\u3067\u306a\u304f<strong>\u3001\u8a08\u7b97\u5f0f\u3067D\u5217\u3092\u4f7f\u3063\u3066\u3044\u308bG\u5217\uff08\u5c0f\u8a08\uff09\u3001H\u5217\uff08\u5408\u8a08\uff09\u3082\u81ea\u52d5\u7684\u306b\u5186\u8868\u8a18\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1873\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_10.png\" alt=\"\" width=\"902\" height=\"162\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_10.png 902w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_10-300x54.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/google_spreadsheet_10-768x138.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u307e\u3067\u306f\u30c7\u30fc\u30bf\u3092\u8868\u3067\u7ba1\u7406\u3057\u3088\u3046\u3068\u306a\u308b\u3068\u3001\u307b\u307c\uff11\uff10\uff10\uff05\u306e\u78ba\u7387\u3067Excel\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u3082\u3061\u308d\u3093\u4eca\u3067\u3082\u3053\u306e\u5f71\u97ff\u3067\u4e3b\u306b\u4f01\u696d\u5185\u3067\u306fE &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=1816\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067\u6ce8\u6587\u30c7\u30fc\u30bf\u3092Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8ffd\u52a0\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1876,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[29,99],"class_list":["post-1816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-php","tag-google","tag-99"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1816","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=1816"}],"version-history":[{"count":12,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1816\/revisions"}],"predecessor-version":[{"id":1880,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1816\/revisions\/1880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/1876"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}