{"id":4285,"date":"2019-08-02T03:08:57","date_gmt":"2019-08-01T18:08:57","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4285"},"modified":"2025-12-03T18:04:49","modified_gmt":"2025-12-03T09:04:49","slug":"laravel%e3%81%a7line%e3%81%ab%e3%83%81%e3%83%a3%e3%83%83%e3%83%88%e3%83%9c%e3%83%83%e3%83%88%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b%ef%bc%88qr%e3%82%b3%e3%83%bc%e3%83%89%e4%bd%9c%e6%88%90%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4285","title":{"rendered":"Laravel\u3067LINE\u306b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u3064\u304f\u308b\uff08QR\u30b3\u30fc\u30c9\u4f5c\u6210\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u300cPC+\u30ea\u30a2\u30eb\u306a\u6a5f\u68b0\u300d\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u3044\u304f\u3064\u304b\u516c\u958b\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u3092\u8a00\u3046\u3068\u307e\u3060\u885d\u52d5\u8cb7\u3044\u3057\u3066\u3057\u307e\u3063\u305f\u30d1\u30bd\u30b3\u30f3\u6a5f\u5668\u304c\u3044\u304f\u3064\u304b\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3082\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u306f\u601d\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3055\u3059\u304c\u306b\u3061\u3087\u3063\u3068\u540c\u3058\u30c6\u30fc\u30de\u304c\u7d9a\u304d\u3059\u304e\u304b\u306a\u3068\u611f\u3058\u3066\u3044\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u4e00\u5207\u30d1\u30bd\u30b3\u30f3\u6a5f\u5668\u3092\u4f7f\u308f\u306a\u3044\u30c7\u30b8\u30bf\u30eb\u30fb\u30aa\u30f3\u30ea\u30fc\u306a\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306e\u5185\u5bb9\u3067\u3059\u304c\u3001\u3053\u308c\u3082\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u3068\u305a\u3063\u3068\u8003\u3048\u3066\u3044\u305f<strong>\u300cLINE\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u300d<\/strong>\u3092<code>Laravel<\/code>\u3067\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d<code>LINE<\/code>\u306f\u30b9\u30de\u30db\u30fb\u30e6\u30fc\u30b6\u30fc\u306a\u3089\u307b\u307c\u5168\u3066\u306e\u4eba\u304c\u4f7f\u3063\u3066\u3044\u308b\u3068\u3044\u3063\u3066\u3082\u3044\u3044\u30a2\u30d7\u30ea\u306a\u306e\u3067\u3001\u3082\u3057\u304b\u3059\u308b\u3068\u300c\u3044\u307e\u3055\u3089\u611f\u300d\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4f5c\u6210\u3059\u308b\u5185\u5bb9\u3067\u4fbf\u5229\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u63d0\u4f9b\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u958b\u767a\u3059\u308b\u6a5f\u80fd\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u300cQR\u30b3\u30fc\u30c9\u30fb\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u300d<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\u3002<br \/>\nLINE\u306b<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u3068QR\u30b3\u30fc\u30c9\u306e\u753b\u50cf\u3064\u304f\u3063\u3066\u8fd4\u4fe1\u3057\u3066\u304f\u308c\u308b<\/strong>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3067\u304d\u308c\u3070LINE\u304c\u4f7f\u3048\u308b\u5b66\u751f\u306e\u7686\u3055\u3093\u306b\u590f\u4f11\u307f\u306e\u81ea\u7531\u7814\u7a76\u306a\u3093\u304b\u3067\u4f7f\u3063\u3066\u3082\u3089\u3048\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\uff08\u79c1\u306f\u3001\u306f\u3058\u3081\u306f\u30aa\u30fc\u30eb\u30b3\u30d4\u30da\u8cdb\u6210\u6d3e\u3067\u3059\u3002\u611f\u52d5\u304c\u5b66\u7fd2\u610f\u6b32\u3092\u304b\u304d\u7acb\u3066\u308b\u306f\u305a\u306a\u306e\u3067\ud83d\ude0a\u2728\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300c\u81ea\u7531\u7814\u7a76\u3063\u3066\u697d\u3057\u3044\u3067\u3059\u3088\u306d\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 5.8<\/p>\n<h1>\u5148\u306b\u8a66\u3057\u3066\u307f\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305fLINE\u30dc\u30c3\u30c8\u3092\u4ee5\u4e0b\u304b\u3089\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u5f8c\u3082\u3053\u306e\u30dc\u30c3\u30c8\u306f\u516c\u958b\u3057\u7d9a\u3051\u308b\u306e\u3067\u826f\u304b\u3063\u305f\u3089\u4eca\u5f8c\u3082\u4f7f\u3063\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u4eba\u6c17\u304c\u306a\u304b\u3063\u305f\u3089\u3053\u3063\u305d\u308a\u7d42\u4e86\u3059\u308b\u304b\u3082\u3067\u3059\u304c\u30fb\u30fb\u30fb\ud83d\ude05\uff09<\/p>\n<p>\u3010QR\u30b3\u30fc\u30c9\u3092\u3064\u304f\u308b and \u8aad\u3080\u3011<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4520\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_comic_6.png\" alt=\"\" width=\"194\" height=\"186\" \/><\/p>\n<h1>LINE Messaging API\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h1>\n<h2>LINE Developers\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u308b<\/h2>\n<p>LINE\u3067BOT\u306b\u5fc5\u8981\u306a<code>LINE Messaging API<\/code>\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a<code>LINE Developers<\/code>\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/developers.line.biz\/ja\/\" target=\"_blank\" rel=\"noopener noreferrer\">LINE Developers<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u753b\u9762\u53f3\u4e0a\u306b\u3042\u308b<strong>\u300c\u30ed\u30b0\u30a4\u30f3\u300d<\/strong>\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-4306\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_21.png\" alt=\"\" width=\"225\" height=\"117\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\uff08\u3059\u3067\u306b\u304a\u6301\u3061\u306e\uff09LINE\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u306e\u3067\u3001<strong>\u300cLINE\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4305\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_1.png\" alt=\"\" width=\"404\" height=\"422\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_1.png 404w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_1-287x300.png 287w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u4eca\u56de\u306fQR\u30b3\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u306e\u3067\u3001<strong>\u300cQR\u30b3\u30fc\u30c9\u30ed\u30b0\u30a4\u30f3\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4304\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_2.png\" alt=\"\" width=\"494\" height=\"562\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_2.png 494w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_2-264x300.png 264w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/p>\n<p>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068QR\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\uff08\u3069\u306e\u30a2\u30d7\u30ea\u3067\u3082\u3044\u3044\u306e\u3067\uff09QR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u3068\u308a\u3001\u53d6\u5f97\u3055\u308c\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4303\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_3.png\" alt=\"\" width=\"495\" height=\"616\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_3.png 495w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_3-241x300.png 241w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/p>\n<p>\u3059\u308b\u3068LINE\u306e\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u3001\u8a8d\u8a3c\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067PC\u5074\u306b\u8868\u793a\u3055\u308c\u308b\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u81ea\u52d5\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u767b\u9332\u3059\u308b<\/h2>\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b<strong>\u300c\u65b0\u898f\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u4f5c\u6210\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002\uff08\u3061\u306a\u307f\u306b\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3068\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u63d0\u4f9b\u8005\u306e\u30b3\u30c8\u3067\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4300\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_6.png\" alt=\"\" width=\"211\" height=\"59\" \/><\/p>\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<strong>\u300c\u958b\u767a\u8005\u540d\u300d<\/strong>\u3068<strong>\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u300d<\/strong>\u3092\u5165\u529b\u3057\u3066<strong>\u300c\u3053\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4301\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_5.png\" alt=\"\" width=\"923\" height=\"375\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_5.png 923w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_5-300x122.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_5-768x312.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u7d9a\u3044\u3066\u78ba\u8a8d\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001<strong>\u300c\u4f5c\u6210\u3059\u308b\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4298\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_8.png\" alt=\"\" width=\"796\" height=\"413\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_8.png 796w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_8-300x156.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_8-768x398.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>Messaging API\u3092\u6709\u52b9\u306b\u3059\u308b<\/h2>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2025\/12\/03\u3011<\/strong><\/p>\n<p>\u3069\u3046\u3084\u3089\u3001<code>Message API<\/code>\u306e\u30c1\u30e3\u30cd\u30eb\u4f5c\u6210\u306f\u300c<strong>LINE\u516c\u5f0f\u30a2\u30ab\u30a6\u30f3\u30c8<\/strong>\u300d\u306b\u79fb\u884c\u3057\u305f\u3088\u3046\u3067\u3059\u3002\u3084\u308a\u65b9\u306f\u4ee5\u4e0b\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u79fb\u884c\u3092\u77e5\u3089\u305b\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u308b\u306e\u3067\u3001\u300c<strong>LINE\u516c\u5f0f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19443\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_1.png\" alt=\"\" width=\"402\" height=\"316\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_1.png 402w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_1-300x236.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/p>\n<p>\u30b7\u30e7\u30fc\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u8a8d\u8a3c\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u300c<strong>SMS\u8a8d\u8a3c\u3092\u884c\u3046<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19444\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_2.png\" alt=\"\" width=\"637\" height=\"272\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_2.png 637w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_2-300x128.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<p>\u96fb\u8a71\u756a\u53f7\u3092\u5165\u529b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19445\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_3.png\" alt=\"\" width=\"412\" height=\"520\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_3.png 412w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_messaging_api_business_id_3-238x300.png 238w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p>\u4ee5\u964d\u3001\u6307\u793a\u306b\u3057\u305f\u304c\u3046\u3068\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u4eca\u307e\u3067\u3069\u304a\u308a\uff08<code>Line Developers<\/code>\uff09\u306b\u623b\u3063\u3066\uff08\u6b21\u306e\u9805\u76ee\u300c<strong>Messaging API\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/strong>\u300d\u307e\u3067\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\uff08\u3053\u3053\u304b\u3089\u306f\u53e4\u3044\u60c5\u5831\u3067\u3059\uff09<\/p>\n<p>\u3067\u306f\u7d9a\u3044\u3066\u3001\u672c\u984c\u306e<code>Messaging API<\/code>\u306e\u767b\u9332\u3067\u3059\u3002<br \/>\n\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u767b\u9332\u304c\u5b8c\u4e86\u3057\u305f\u30da\u30fc\u30b8\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>Messaging API<\/code>\u306e\u30c1\u30e3\u30cd\u30eb\u3092\u767b\u9332\u3059\u308b\u90e8\u5206\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u306e<strong>\u300c\u30c1\u30e3\u30cd\u30eb\u4f5c\u6210\u3059\u308b\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4297\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_9.png\" alt=\"\" width=\"244\" height=\"324\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_9.png 244w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_9-226x300.png 226w\" sizes=\"auto, (max-width: 244px) 100vw, 244px\" \/><\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u306b\u306f\u8272\u3005\u3068\u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u3067\u3059\u306e\u3067\u5fc5\u9808\u5165\u529b\u306e\u4ee5\u4e0b\uff14\u3064\u3060\u3051\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30a2\u30d7\u30ea\u540d\u3000\u30fb\u30fb\u30fb\u3000\u4f5c\u6210\u3059\u308bBOT\u306e\u540d\u524d<\/li>\n<li>\u30a2\u30d7\u30ea\u8aac\u660e\u3000\u30fb\u30fb\u30fb\u3000BOT\u306e\u5185\u5bb9<\/li>\n<li>\u5927\u696d\u7a2e\u3001\u5c0f\u696d\u7a2e\u3000\u30fb\u30fb\u30fb\u3000\u30ab\u30c6\u30b4\u30ea<\/li>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3000\u30fb\u30fb\u30fb\u3000\u30e1\u30a2\u30c9<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4296\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_10.png\" alt=\"\" width=\"622\" height=\"437\" \/><\/p>\n<p>\u5165\u529b\u304c\u7d42\u308f\u3063\u305f\u3089<strong>\u300c\u5165\u529b\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4295\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_11.png\" alt=\"\" width=\"560\" height=\"102\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_11.png 560w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_11-300x55.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>\u540c\u610f\u5185\u5bb9\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3055\u308c\u308b\u306e\u3067\u300c\u540c\u610f\u3059\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4294\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_12.png\" alt=\"\" width=\"208\" height=\"94\" \/><\/p>\n<p>\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u3055\u3089\u306b\u5229\u7528\u898f\u7d04\u306e\u540c\u610f\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u3066<strong>\u300c\u4f5c\u6210\u300d<\/strong>\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-4293\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_13.png\" alt=\"\" width=\"780\" height=\"251\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_13.png 780w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_13-300x97.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_13-768x247.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u30c1\u30e3\u30cd\u30eb\u306e\u4f5c\u6210\u3082\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>Messaging API\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u4f5c\u6210\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066API\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5fc5\u8981\u306a\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4292\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_14.png\" alt=\"\" width=\"263\" height=\"363\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_14.png 263w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_14-217x300.png 217w\" sizes=\"auto, (max-width: 263px) 100vw, 263px\" \/><\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u8272\u3005\u3068\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u4e2d\u306b<strong>\u300cChannel Secret\u300d<\/strong>\u3068\u3044\u3046\u90e8\u5206\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u304cAPI\u306e\u79d8\u5bc6\u9375\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4291\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_15.png\" alt=\"\" width=\"565\" height=\"107\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_15.png 565w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_15-300x57.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p>Laravel\u306e<code>.env<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>LINE_CHANNEL_SECRET=\uff08\u3042\u306a\u305f\u306e\u79d8\u5bc6\u9375\uff09<\/strong><\/pre>\n<p>\u7d9a\u3044\u3066\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3067\u3059\u304c\u3001\u521d\u671f\u72b6\u614b\u3067\u306f\u30c8\u30fc\u30af\u30f3\u306f\u767a\u884c\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001<strong>\u300c\u518d\u767a\u884c\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4290\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_16.png\" alt=\"\" width=\"564\" height=\"133\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_16.png 564w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_16-300x71.png 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e<strong>\u300c\u518d\u767a\u884c\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3002\uff08\u6587\u7ae0\u3092\u8aad\u3080\u3068\u30c8\u30fc\u30af\u30f3\u306f\u6700\u592724\u6642\u9593\u3057\u304b\u4f7f\u3048\u306a\u3044\u304b\u3068\u52d8\u9055\u3044\u3057\u305d\u3046\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u300c\u53e4\u3044\u30c8\u30fc\u30af\u30f3\u304c\u3042\u3068\u3069\u308c\u3060\u3051\u6709\u52b9\u306b\u306a\u308b\u304b\u300d\u3068\u3044\u3046\u610f\u5473\u306e\u3088\u3046\u3067\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4289\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_17.png\" alt=\"\" width=\"495\" height=\"352\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_17.png 495w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_17-300x213.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u767a\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4288\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_18.png\" alt=\"\" width=\"563\" height=\"198\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_18.png 563w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_18-300x106.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/p>\n<p>\u3053\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3082<code>Laravel<\/code>\u306e<code>.env<\/code>\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>LINE_ACCESS_TOKEN=\uff08\u3042\u306a\u305f\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\uff09<\/strong><\/pre>\n<h2>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b<\/h2>\n<p>BOT\u304c\u81ea\u52d5\u8fd4\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<strong>\u300cWebhook\u9001\u4fe1\u300d<\/strong>\u3068<strong>\u300cWebhook URL\u300d<\/strong>\u3092\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4286\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_20.png\" alt=\"\" width=\"562\" height=\"314\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_20.png 562w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_20-300x168.png 300w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/p>\n<p>\u3053\u308c\u3067LINE\u5074\u3067\u306e\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h1>Laravel\u5074\u306e\u4f5c\u696d<\/h1>\n<p>\u3067\u306f\u3053\u3053\u304b\u3089\u306f<code>Laravel<\/code>\u3067<code>LINE<\/code>\u304b\u3089\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308b\u30b3\u30fc\u30c9\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p><code>LINE<\/code>\u306f\u516c\u5f0f\u306b<code>PHP<\/code>\u5411\u3051\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u516c\u958b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>composer require linecorp\/line-bot-sdk<\/strong><\/pre>\n<p>\u307e\u305f\u3001QR\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>composer require endroid\/qr-code<\/strong><\/pre>\n<h2>QR\u30b3\u30fc\u30c9\u4fdd\u5b58\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u3064\u304f\u308b<\/h2>\n<p>\u53d6\u5f97\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u4f5c\u3063\u305fQR\u30b3\u30fc\u30c9\u3092\u4e00\u6642\u7684\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u305f\u3081\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u4eca\u56de\u306f<code>\/public\/qr_code<\/code>\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\uff08\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3082\u3064\u3051\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4320\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_22.png\" alt=\"\" width=\"354\" height=\"114\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_22.png 354w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_22-300x97.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u4eca\u56de\u3001LINE\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308bURL\u3092<code>https:\/\/*********\/qr-bot<\/code>\u3068\u3057\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b<code>Webhook<\/code>\u306fPOST\u3067\u9001\u4fe1\u3055\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>Route::post('qr-bot', 'QrBotController@reply');<\/strong><\/pre>\n<h2>CSRF\uff08\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea\uff09\u5bfe\u7b56\u3092\u89e3\u9664\u3059\u308b<\/h2>\n<p>\u3054\u5b58\u77e5\u306e\u3068\u304a\u308a<code>Laravel<\/code>\u306f\u4ed6\u306e\u30b5\u30a4\u30c8\u304b\u3089\u4e0d\u6b63\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<code>CSRF<\/code>\u306e\u5bfe\u7b56\u3068\u3057\u3066<code>POST<\/code>\u3084<code>PUT<\/code>\u306a\u3069\u306e\u901a\u4fe1\u306b\u306f\u6bce\u56de\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\uff08\u30c8\u30fc\u30af\u30f3\uff09\u3092\u4f5c\u3063\u3066\u3053\u306e\u6587\u5b57\u5217\u304c\u4e00\u81f4\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001<code>LINE<\/code>\u304b\u3089\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3060\u3068\u3053\u306e\u30c8\u30fc\u30af\u30f3\u3092\u4f5c\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u5148\u307b\u3069\u3064\u304f\u3063\u305f\u30eb\u30fc\u30c8\u3060\u3051<code>CSRF<\/code>\u5bfe\u7b56\u3092\u89e3\u9664\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>app\/Http\/Middleware\/VerifyCsrfToken.php<\/code>\u3092\u958b\u3044\u3066<code>$except<\/code>\u306b\u5148\u307b\u3069\u306eURL\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\n\nnamespace App\\Http\\Middleware;\n\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as Middleware;\n\nclass VerifyCsrfToken extends Middleware\n{\n    \/**\n     * Indicates whether the XSRF-TOKEN cookie should be set on the response.\n     *\n     * @var bool\n     *\/\n    protected $addHttpCookie = true;\n\n    \/**\n     * The URIs that should be excluded from CSRF verification.\n     *\n     * @var array\n     *\/\n    <strong>protected $except = [<\/strong>\n<strong>        'qr-bot'<\/strong>\n<strong>    ];<\/strong>\n}<\/pre>\n<p>\u3053\u308c\u3067\u3001LINE\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089<strong>\u300c\u63a5\u7d9a\u78ba\u8a8d\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u969b\u306bHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c<code>200<\/code>\u3067\u3042\u308c\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4310\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_23.png\" alt=\"\" width=\"602\" height=\"139\" \/><\/p>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6b21\u306b\u5c02\u7528\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller QrBotController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Http\/Controllers\/QrBotController.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\n\nnamespace App\\Http\\Controllers;\n\nuse Endroid\\QrCode\\QrCode;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Str;\nuse LINE\\LINEBot;\nuse LINE\\LINEBot\\HTTPClient\\CurlHTTPClient;\nuse LINE\\LINEBot\\MessageBuilder\\ImageMessageBuilder;\nuse LINE\\LINEBot\\Event\\MessageEvent;\nuse LINE\\LINEBot\\Event\\MessageEvent\\TextMessage;\n\nclass QrBotController extends Controller\n{\n    public function reply(Request $request) {\n\n        $channel_secret = env('LINE_CHANNEL_SECRET');\n        $access_token = env('LINE_ACCESS_TOKEN');\n        $request_body = $request-&gt;getContent();\n        $hash = hash_hmac('sha256', $request_body, $channel_secret, true);\n        $signature = base64_encode($hash);\n\n        if(<strong>$signature === $request-&gt;header('X-Line-Signature')<\/strong>) {   \/\/ LINE\u304b\u3089\u306e\u9001\u4fe1\u3092\u691c\u8a3c\n\n            $client = new CurlHTTPClient($access_token);\n            $bot = new LINEBot($client, ['channelSecret' =&gt; $channel_secret]);\n\n            try {\n\n                <strong>$events = $bot-&gt;parseEventRequest($request_body, $signature);<\/strong>\n\n                foreach ($events as $event) {\n\n                    if(<strong>$event instanceof MessageEvent &amp;&amp; $event instanceof TextMessage<\/strong>) {   \/\/ \u30c6\u30ad\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5834\u5408\n\n                        <strong>$text = $event-&gt;getText();              \/\/ LINE\u3067\u9001\u4fe1\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8<\/strong>\n<strong>                        $reply_token = $event-&gt;getReplyToken(); \/\/ \u8fd4\u4fe1\u7528\u30c8\u30fc\u30af\u30f3<\/strong>\n\n                        \/\/ QR\u30b3\u30fc\u30c9\u4f5c\u6210\n                        <strong>$filename = Str::random() .'.png';<\/strong>\n<strong>                        $path = public_path('qr_code\/'. $filename);<\/strong>\n<strong>                        $qrCode = new QrCode($text);<\/strong>\n<strong>                        $qrCode-&gt;writeFile($path);<\/strong>\n\n                        \/\/ \u753b\u50cf\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u8fd4\u4fe1\n                        <strong>$url = url('qr_code\/'. $filename);<\/strong>\n<strong>                        $replying_message = new ImageMessageBuilder(<\/strong>\n<strong>                            $url,<\/strong>\n<strong>                            $url<\/strong>\n<strong>                        );<\/strong>\n<strong>                        $bot-&gt;replyMessage($reply_token, $replying_message);<\/strong>\n\n                    }\n\n                }\n\n            } catch (\\Exception $e) {}\n\n        }\n\n    }\n}<\/pre>\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u307e\u305a\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u305d\u308c\u304c\u672c\u5f53\u306bLINE\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306a\u306e\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u308c\u304c\u691c\u8a3c\u3055\u308c\u305f\u3089\u6b21\u306b\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u3001\u3055\u3089\u306b\u305d\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4f7f\u3063\u3066QR\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u4f5c\u6210\u3055\u308c\u305fQR\u30b3\u30fc\u30c9\u306eURL\u3092LINE\u5074\u306b\u8fd4\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u9001\u4fe1\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b<code>ImageMessageBuilder<\/code>\u306f\u753b\u50cf\u672c\u4f53\u3092\u9001\u4fe1\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u5358\u306bURL\u3092\u9001\u4fe1\u3057\u3066\u3044\u308b\u306b\u3059\u304e\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u4f5c\u6210\u3057\u305fQR\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3046\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3046\u307e\u304f\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30c1\u30e3\u30cd\u30eb\u306e\u8a73\u7d30\u30da\u30fc\u30b8\u306e\u4e0b\u306e\u65b9\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306aQR\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u306eQR\u30b3\u30fc\u30c9\u3092\u30a2\u30d7\u30ea\u306a\u3069\u3067\u8aad\u307f\u3068\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4316\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_27.png\" alt=\"\" width=\"460\" height=\"278\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_27.png 460w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_27-300x181.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/p>\n<p>\u3059\u308b\u3068\u4f5c\u6210\u3057\u305f<code>BOT<\/code>\u3068<code>LINE<\/code>\u3067\u53cb\u9054\u306b\u306a\u308c\u308b\u306e\u3067\u4f55\u304b\u6587\u5b57\u3092\u9001\u4fe1\u3057\u3066\u307f\u307e\u3059\u3002\uff08\u4eca\u56de\u306f\u3053\u306e\u30d6\u30ed\u30b0\u306eURL\u3067\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4317\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_28.png\" alt=\"\" width=\"1080\" height=\"1148\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_28.png 1080w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_28-282x300.png 282w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_28-768x816.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_28-963x1024.png 963w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u306f\u3044\uff01<br \/>\n\u81ea\u52d5\u3067QR\u30b3\u30fc\u30c9\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u3061\u306a\u307f\u306b\uff1a\u81ea\u52d5\u8fd4\u4fe1\u3092\u7121\u52b9\u306b\u3059\u308b<\/h1>\n<p><code>LINE Messaging API<\/code>\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3068\u3057\u3066\u5fc5\u305a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u81ea\u52d5\u3067\u8fd4\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u306f\u3001\u672c\u5f53\u306bLINE\u3068\u306e\u3084\u308a\u3068\u308a\u304c\u3067\u304d\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u306b\u6b8b\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u304c\u3001\u30c6\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u3089\u3082\u3046\u4e0d\u8981\u3067\u3059\u306e\u3067\u3001\u6b21\u306e\u624b\u9806\u3067\u7121\u52b9\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4313\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_26.png\" alt=\"\" width=\"860\" height=\"512\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_26.png 860w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_26-300x179.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_26-768x457.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<blockquote><p>\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u300d<br \/>\n\u300c\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089\u500b\u5225\u306b\u8fd4\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u300d<br \/>\n\u300c\u6b21\u56de\u306e\u914d\u4fe1\u3092\u304a\u697d\u3057\u307f\u306b\u300d<\/p><\/blockquote>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3092\u53d6\u5f97\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u306e\u8a73\u7d30\u30da\u30fc\u30b8\u306b<strong>\u300c\u81ea\u52d5\u5fdc\u7b54\u30e1\u30c3\u30bb\u30fc\u30b8\u300d<\/strong>\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u306e<strong>\u300c\u8a2d\u5b9a\u306f\u3053\u3061\u3089\u300d<\/strong>\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4315\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_24.png\" alt=\"\" width=\"651\" height=\"109\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_24.png 651w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_24-300x50.png 300w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/p>\n<p>\u3059\u308b\u3068\u5225\u30da\u30fc\u30b8\u304c\u958b\u304b\u308c\u308b\u306e\u3067\u3001\u5fdc\u7b54\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30aa\u30d5\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u4fdd\u5b58\u306f\u81ea\u52d5\u3067\u3084\u3063\u3066\u304f\u308c\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4314\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_25.png\" alt=\"\" width=\"484\" height=\"519\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_25.png 484w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/line_bot_25-280x300.png 280w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<h1>\u8ffd\u8a18\uff1aQR\u30b3\u30fc\u30c9\u8aad\u307f\u3068\u308a\u6a5f\u80fd\u3082\u3064\u3051\u307e\u3057\u305f\uff082019.09.02\uff09<\/h1>\n<p>\u305d\u306e\u5f8c\u3001\u305b\u3063\u304b\u304f\u306a\u3089\u9006\u306bQR\u30b3\u30fc\u30c9\u304c\u9001\u4fe1\u3055\u308c\u305f\u3089\u5185\u5bb9\u3092\u8aad\u307f\u53d6\u3063\u3066\u8fd4\u4fe1\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u306e\u3067\u3001<code>QrBotController.php<\/code>\u3092\u66f4\u306b\u6539\u9020\u3057\u3066\u5b9f\u88c5\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001QR\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u3068\u308a\u306b\u306f<code>zbar<\/code>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u8a73\u3057\u3044\u5185\u5bb9\u306f<a href=\"https:\/\/blog.capilano-fw.com\/?p=4505\">\u30cd\u30c3\u30c8\u30ab\u30d5\u30a7\u5411\u3051\u306b\u30b3\u30df\u30c3\u30af\u3092\u3069\u3053\u307e\u3067\u8aad\u3093\u3060\u304b\u8a18\u9332\u3059\u308bLINE\u30dc\u30c3\u30c8\u3092\u3064\u304f\u3063\u305f<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\n\nnamespace App\\Http\\Controllers;\n\nuse Endroid\\QrCode\\QrCode;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Str;\nuse LINE\\LINEBot;\nuse LINE\\LINEBot\\Event\\MessageEvent\\ImageMessage;\nuse LINE\\LINEBot\\HTTPClient\\CurlHTTPClient;\nuse LINE\\LINEBot\\MessageBuilder\\ImageMessageBuilder;\nuse LINE\\LINEBot\\Event\\MessageEvent;\nuse LINE\\LINEBot\\Event\\MessageEvent\\TextMessage;\n\nclass QrBotController extends Controller\n{\n    public function reply(Request $request) {\n\n        $channel_secret = env('LINE_CHANNEL_SECRET');\n        $access_token = env('LINE_ACCESS_TOKEN');\n        $request_body = $request-&gt;getContent();\n        $hash = hash_hmac('sha256', $request_body, $channel_secret, true);\n        $signature = base64_encode($hash);\n\n        if($signature === $request-&gt;header('X-Line-Signature')) {   \/\/ LINE\u304b\u3089\u306e\u9001\u4fe1\u3092\u691c\u8a3c\n\n            $client = new CurlHTTPClient($access_token);\n            $bot = new LINEBot($client, ['channelSecret' =&gt; $channel_secret]);\n\n            try {\n\n                $events = $bot-&gt;parseEventRequest($request_body, $signature);\n\n                foreach ($events as $event) {\n\n                    if($event instanceof MessageEvent) {   \/\/ \u30c6\u30ad\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5834\u5408\n\n                        $reply_token = $event-&gt;getReplyToken(); \/\/ \u8fd4\u4fe1\u7528\u30c8\u30fc\u30af\u30f3\n\n                        if($event instanceof TextMessage) { \/\/ QR\u30b3\u30fc\u30c9\u4f5c\u6210\n\n                            $text = $event-&gt;getText();              \/\/ LINE\u3067\u9001\u4fe1\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\n\n                            \/\/ QR\u30b3\u30fc\u30c9\u4f5c\u6210\n                            $filename = Str::random() .'.png';\n                            $path = public_path('qr_code\/'. $filename);\n                            $qrCode = new QrCode($text);\n                            $qrCode-&gt;writeFile($path);\n\n                            \/\/ \u753b\u50cf\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u8fd4\u4fe1\n                            $url = url('qr_code\/'. $filename);\n                            $replying_message = new ImageMessageBuilder(\n                                $url,\n                                $url\n                            );\n                            $bot-&gt;replyMessage($reply_token, $replying_message);\n                            break;\n\n                        } else if($event instanceof ImageMessage) { \/\/ QR\u30b3\u30fc\u30c9\u8aad\u307f\u3068\u308a\n\n                            <strong>$replying_text = '';<\/strong>\n<strong>                            $message_id = $event-&gt;getMessageId();<\/strong>\n<strong>                            $response = $bot-&gt;getMessageContent($message_id);<\/strong>\n\n<strong>                            if($response-&gt;isSucceeded()) {<\/strong>\n\n<strong>                                $filename = $message_id .'.jpg';<\/strong>\n<strong>                                $image_path = storage_path('app\/qr_bot\/'. $filename);<\/strong>\n<strong>                                \\Storage::put('qr_bot\/'. $filename, $response-&gt;getRawBody());<\/strong>\n<strong>                                $replying_text = $this-&gt;read_qr($image_path);<\/strong>\n<strong>                                @unlink($image_path);<\/strong>\n\n<strong>                            }<\/strong>\n\n<strong>                            $bot-&gt;replyText($reply_token, $replying_text);    \/\/ \u8fd4\u4fe1<\/strong>\n<strong>                            break;<\/strong>\n\n                        }\n\n                    }\n\n                }\n\n            } catch (\\Exception $e) {}\n\n        }\n\n    }\n\n    <strong>private function read_qr($path) {<\/strong>\n\n<strong>        $text = '';<\/strong>\n<strong>        exec('\/usr\/bin\/zbarimg '. $path, $results);<\/strong>\n<strong>        $results_count = count($results);<\/strong>\n\n<strong>        if($results_count &gt; 0) {<\/strong>\n\n<strong>            foreach($results as $index =&gt; $result) {<\/strong>\n\n<strong>                if($index === 0) {<\/strong>\n\n<strong>                    $text .= preg_replace('|QR-Code:|', '', $result);<\/strong>\n\n<strong>                } else {<\/strong>\n\n<strong>                    $text .= $result;<\/strong>\n\n<strong>                }<\/strong>\n\n<strong>                if($index &lt; ($results_count-1)) {<\/strong>\n\n<strong>                    $text .= \"\\n\";<\/strong>\n\n<strong>                }<\/strong>\n\n<strong>            }<\/strong>\n\n<strong>        }<\/strong>\n\n<strong>        return $text;<\/strong>\n\n<strong>    }<\/strong>\n}<\/pre>\n<h1>\u3061\u306a\u307f\u306b\uff1a \u8ffd\u8a182019.09.16<\/h1>\n<p>\u3061\u306a\u307f\u306b\u3001\u3042\u308b\u958b\u767a\u3067\u308f\u304b\u3063\u305f\u3053\u3068\u306a\u306e\u3067\u3059\u304cQR\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u3068\u308a\u5668\u306b\u3088\u3063\u3066\u306f<code>ECI<\/code>\uff08\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u60c5\u5831\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5148\u982d\u306b\u4f59\u5206\u306a\u30c7\u30fc\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n<pre class=\"timelineMessage__message\">\\000026\uff08QR\u30b3\u30fc\u30c9\u306e\u5185\u5bb9\uff09<\/pre>\n<p>\u203b <code>\\000026<\/code>\u306f<code>UTF-8<\/code>\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u4f7f\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8<code>Endroid\\QrCode\\QrCode<\/code>\u3067\u3053\u306e<code>ECI<\/code>\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u306b<code>ISO-8859-1<\/code>\u3092\u30bb\u30c3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>$qrCode = new QrCode('QR\u30b3\u30fc\u30c9\u306e\u5185\u5bb9');\n<strong>$qrCode-&gt;setEncoding('ISO-8859-1');<\/strong><\/pre>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f<code>LINE Messaging API<\/code> + <code>Laravel<\/code>\u3067\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>LINE\u306e\u30a2\u30d7\u30ea\u3092\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3082\u7c21\u5358\u3067\u3059\u3057\u3001<code>Laravel<\/code>\u5074\u306e\u30b3\u30fc\u30c9\u3082\u305d\u308c\u307b\u3069\u591a\u3044\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u6bd4\u8f03\u7684\u3059\u3050\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5fdc\u7528\u3059\u308c\u3070LINE\u306e\u30e6\u30fc\u30b6\u30fcID\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3001\u51fa\u5148\u3067\u4f1a\u793e\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306bLINE\u3092\u4f7f\u3063\u3066\u691c\u7d22\u3092\u304b\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001\u5728\u5eab\u304c\u4eca\u73fe\u5728\u3044\u304f\u3064\u306a\u306e\u304b\uff1f\u3068\u3044\u3046\u8fd4\u4fe1\u3082\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u6b21\u7b2c\u3067\u5922\u304c\u5e83\u304c\u308a\u307e\u3059\u306d\ud83d\ude0a\u2728<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-461 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38.png\" alt=\"\" width=\"294\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38.png 294w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38-276x300.png 276w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u300cPC+\u30ea\u30a2\u30eb\u306a\u6a5f\u68b0\u300d\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u3044\u304f\u3064\u304b\u516c\u958b\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u5b9f\u3092\u8a00\u3046\u3068\u307e\u3060\u885d\u52d5\u8cb7\u3044\u3057\u3066\u3057\u307e\u3063\u305f\u30d1\u30bd\u30b3\u30f3\u6a5f\u5668\u304c\u3044\u304f\u3064\u304b\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4285\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel\u3067LINE\u306b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u3064\u304f\u308b\uff08QR\u30b3\u30fc\u30c9\u4f5c\u6210\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4323,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[134,164],"class_list":["post-4285","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-api","tag-line"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4285","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=4285"}],"version-history":[{"count":18,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4285\/revisions"}],"predecessor-version":[{"id":19457,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4285\/revisions\/19457"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4323"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}