{"id":9136,"date":"2021-05-31T07:00:21","date_gmt":"2021-05-30T22:00:21","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=9136"},"modified":"2021-05-28T19:02:14","modified_gmt":"2021-05-28T10:02:14","slug":"%e3%80%90laravel%e3%80%91%e5%ba%97%e5%85%88%e3%81%a7line%e5%8f%8b%e9%81%94%e7%99%bb%e9%8c%b2%e3%81%97%e3%80%81%e5%95%86%e5%93%81%e3%81%8c%e5%88%b0%e7%9d%80%e3%81%97%e3%81%9f%e3%82%89%e3%83%a1%e3%83%83","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=9136","title":{"rendered":"\u3010Laravel\u3011\u5e97\u5148\u3067LINE\u53cb\u9054\u767b\u9332\u3057\u3001\u4f1a\u54e1\u767b\u9332\u3068\u9023\u643a\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u65b0\u3057\u3044\u30e1\u30ac\u30cd\u306b\u8cb7\u3044\u63db\u3048\u308b\u305f\u3081\u306bCM\u3067\u3082\u3088\u304f\u898b\u304b\u3051\u308b\u304a\u5e97\u306b\u884c\u304f\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306b\u3042\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u76ee\u306b\u6b62\u307e\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">LINE\u3067\u304a\u53cb\u9054\u306b\u306a\u308b\u3068\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u5546\u54c1\u5230\u7740\u306e\u304a\u77e5\u3089\u305b\u3060\u3051\u3067\u306a\u304f\u3001\u5f8c\u307b\u3069\u8cfc\u5165\u6e08\u307f\u306e\u5185\u5bb9\u307e\u3067\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u3067\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306b\u6b21\u306e\u3088\u3046\u306a\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u3001\u30bf\u30c3\u30d7\u3059\u308b\u3068\u305d\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9137\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1.png\" alt=\"\" width=\"533\" height=\"191\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1.png 533w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1-300x108.png 300w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/p>\n<p>\u7d20\u76f4\u306b\u300c\u3078\u3047\u3001\u3059\u3054\u3044\u4fbf\u5229\u2757\u300d\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u53cd\u9762\u300c\u3053\u308c\u3001\u3069\u3046\u3084\u3063\u3066\u5b9f\u88c5\u3057\u3066\u308b\u3093\u3060\u308d\u3046\uff1f\uff1f\u300d\u3068\u30b7\u30b9\u30c6\u30e0\u30fb\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\u306e\u8208\u5473\u304c\u6e67\u3044\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305b\u3063\u304b\u304f\u306a\u3089\u5927\u597d\u304d\u306a<code>Laravel<\/code>\u3067\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306e\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6066\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23.png\" alt=\"\" width=\"370\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23-300x259.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><br \/>\n\u300c\u4ed5\u4e8b\u306e\u305f\u3081\u306a\u306e\u3067<br \/>\n\u30e1\u30ac\u30cd\u306f\u30d5\u30eb\u88c5\u5099\u3067<br \/>\n\u6ce8\u6587\u3057\u307e\u3057\u305f\u2757\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u524d\u63d0\u3068\u3057\u3066\u3001<code>Laravel<\/code>\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002\uff08\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\ud83d\udc4d\uff09<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/blog.capilano-fw.com\/?p=8301\">Laravel Breeze\u3067\u300c\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/blog.capilano-fw.com\/?p=7827\">Laravel8.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f<code>LINE<\/code>\u306e<code>API<\/code>\u3092\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001<a href=\"https:\/\/developers.line.biz\/ja\/\" target=\"_blank\" rel=\"noopener\">LINE Developers<\/a>\u306b\u767b\u9332\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8<\/strong>\uff1a\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=4285#LINE_Developers\" target=\"_blank\" rel=\"noopener\">LINE Developers\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u308b<\/a><\/p>\n<p>\u203b \u5c11\u3057\u6614\u306e\u8a18\u4e8b\u3067\u3059\u306e\u3067\u3001\u73fe\u5728\u3068\u306f\u9055\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\u5b9f\u88c5\u3059\u308b\u624b\u9806<\/h1>\n<p>\u3067\u306f\u3001\u4f5c\u696d\u306b\u5165\u308b\u524d\u306b\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b\u304b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u624b\u9806\u306f\u5b9f\u969b\u79c1\u304c\u4f53\u9a13\u3057\u305f\u6d41\u308c\u3092\u5143\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<ol>\n<li>\u5e97\u982d\u3067\u304a\u5e97\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3068LINE\u3067\u304a\u53cb\u9054\u306b\u306a\u308b<\/li>\n<li>\u4f1a\u54e1\u767b\u9332\u306e\u30ea\u30f3\u30af\u304c\u9001\u4fe1\u3055\u308c\u3066\u304f\u308b\uff08\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\uff09<\/li>\n<li>\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u307e\u305a\u300cLINE\u30ed\u30b0\u30a4\u30f3\u300d\u3078\u30a2\u30af\u30bb\u30b9\uff08OAuth\uff09<\/li>\n<li>\u81ea\u5206\u306e\u60c5\u5831\u3092\u4f7f\u3046\u3053\u3068\u3092\u8a31\u53ef<\/li>\n<li>\u8a31\u53ef\u3055\u308c\u305f\u60c5\u5831\u3092\u4f7f\u3063\u3066\u4f1a\u54e1\u30da\u30fc\u30b8\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/li>\n<li>\u540d\u524d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3001\u4f4f\u6240\u306a\u3069\u6b8b\u308a\u306e\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u5b8c\u4e86<\/li>\n<\/ol>\n<p>\u3055\u3059\u304c\u6709\u540d\u306a\u4f01\u696d\u3055\u3093\u3002<br \/>\n\u5168\u3066\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u6e08\u3080\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u306d \ud83d\udc4d<\/p>\n<p>\u305f\u3060\u3057\u3001\uff16\u756a\u76ee\u306e\u9805\u76ee\u306f\u4eca\u56de\u306e\u5185\u5bb9\u304b\u3089\u306f\u5c11\u3057\u5916\u308c\u308b\u306e\u3067\u5272\u611b\u3057\u3066\u958b\u767a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\uff08\uff15\u756a\u306e\u6642\u70b9\u3067\u4f1a\u54e1\u767b\u9332\u304c\u5b8c\u4e86\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3055\u305b\u307e\u3059\uff09<\/p>\n<h1>\u6e96\u5099\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u30d7\u30ed\u30b0\u30e9\u30e0\u3088\u308a\u5148\u306b\u6e96\u5099\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Messaging API\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<p><code>LINE Developers<\/code>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30c1\u30e3\u30c3\u30c8\u7528\u306b\u300c<strong>\u30c1\u30e3\u30cd\u30eb<\/strong>\u300d\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=4285#Messaging_API\" target=\"_blank\" rel=\"noopener\">Messaging API\u3092\u6709\u52b9\u306b\u3059\u308b<\/a><\/p>\n<p>\u203b \u6642\u9593\u304c\u7d4c\u3061\u5c11\u3057\u8868\u793a\u304c\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u540c\u3058\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u300c<strong>\u30c1\u30e3\u30cd\u30eb\u30b7\u30fc\u30af\u30ec\u30c3\u30c8<\/strong>\u300d\u300c<strong>\u30c1\u30e3\u30cd\u30eb\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3<\/strong>\u300d\u3092\u53d6\u5f97\u3057\u3066<code>.env<\/code>\u306b\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u8fbc\u3093\u3067\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>LINE_CHANNEL_SECRET=*************************<\/strong>\r\n<strong>LINE_ACCESS_TOKEN=****************************************<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u53d6\u5f97\u3059\u308b\u5834\u6240\u306f\u30bf\u30d6\u304c\u9055\u3044\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9140\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_3.png\" alt=\"\" width=\"595\" height=\"224\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_3.png 595w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_3-300x113.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/p>\n<h2>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b<\/h2>\n<p>\u300c<strong>\u304a\u53cb\u9054\u767b\u9332<\/strong>\u300d\u3068\u300c<strong>\u304a\u53cb\u9054\u767b\u9332\u306e\u89e3\u9664<\/strong>\u300d\u3055\u308c\u305f\u5834\u5408\u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c<strong>Messaging API \u8a2d\u5b9a<\/strong>\u300d\u30bf\u30d6\u306e\u4e2d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9146\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_4.png\" alt=\"\" width=\"640\" height=\"226\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_4-300x106.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306a\u304a\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306eURL\u306f<code>CSRF<\/code>\u30c8\u30fc\u30af\u30f3\u30c1\u30a7\u30c3\u30af\u3092\u89e3\u9664\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Middleware\/VerifyCsrfToken.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass VerifyCsrfToken extends Middleware\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    protected $except = [\r\n        <strong>'line\/registration\/webhook' \/\/ \ud83d\udc48 \u3053\u3061\u3089\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n    ];\r\n}<\/pre>\n<p>\u307e\u305f\u3001<code>Webhook<\/code>\u3092\u30aa\u30f3\u306b\u3059\u308b\u306e\u3082\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9166\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_12.png\" alt=\"\" width=\"245\" height=\"62\" \/><\/p>\n<h2>LINE\u30ed\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b<\/h2>\n<p>LINE\u30ed\u30b0\u30a4\u30f3\u306f\u300c\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u300d\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u4eca\u56de\u306f <strong>LINE\u306b\u767b\u9332\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081 <\/strong>\u3060\u3051\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u3001<\/p>\n<ul>\n<li>\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u306e\u53d6\u5f97<\/li>\n<li>\u30b3\u30fc\u30eb\u30d0\u30c3\u30afURL\u306e\u8a2d\u5b9a<\/li>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u53d6\u5f97\u6a29\u9650<\/li>\n<\/ul>\n<p>\u3092\u6e08\u307e\u305b\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=7862#LINE\" target=\"_blank\" rel=\"noopener\">LINE\u304b\u3089\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/a><\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u3053\u308c\u304b\u3089\u4f7f\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>LINE API \u30d1\u30c3\u30b1\u30fc\u30b8<\/strong><\/p>\n<pre><strong>composer require linecorp\/line-bot-sdk<\/strong><\/pre>\n<p><strong>\u753b\u50cf\u3092\u64cd\u4f5c\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<\/strong><\/p>\n<pre><strong>composer require intervention\/image<\/strong><\/pre>\n<p><strong>\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8<\/strong><\/p>\n<pre><strong>composer require laravel\/socialite<\/strong><\/pre>\n<pre><strong>composer require socialiteproviders\/line<\/strong><\/pre>\n<p>\u306a\u304a\u3001<code>socialiteproviders\/line<\/code>\u306f\u3001<code>Laravel<\/code>\u306b\u30bb\u30c3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Providers\/EventServiceProvider.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>use SocialiteProviders\\Line\\LineExtendSocialite; \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n<strong>use SocialiteProviders\\Manager\\SocialiteWasCalled; \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n\r\nclass EventServiceProvider extends ServiceProvider\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    protected $listen = [\r\n        Registered::class =&gt; [\r\n            SendEmailVerificationNotification::class,\r\n        ],\r\n<strong>        SocialiteWasCalled::class =&gt; [ \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n<strong>            LineExtendSocialite::class<\/strong>\r\n<strong>        ]<\/strong>\r\n    ];<\/pre>\n<p>\u3067\u306f\u3001\u304a\u5f85\u305f\u305b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306e\u9805\u76ee\u304b\u3089\u3001\u5b9f\u969b\u306b<code>Laravel<\/code>\u958b\u767a\u3092\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30e2\u30c7\u30eb\uff06\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u3001\u4eca\u56de\u5fc5\u8981\u306a<code>line_users<\/code>\u30c6\u30fc\u30d6\u30eb\u3092\u3064\u304f\u3063\u3066\u3044\u304d\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:model LineUser -m<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_create_line_users_table.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Schema::create('line_users', function (Blueprint $table) {<\/strong>\r\n<strong>    $table-&gt;id();<\/strong>\r\n<strong>    $table-&gt;unsignedBigInteger('user_id')-&gt;nullable()-&gt;comment('\u30e6\u30fc\u30b6\u30fcID');<\/strong>\r\n<strong>    $table-&gt;string('line_id')-&gt;comment('LINE\u306eID');<\/strong>\r\n<strong>    $table-&gt;string('mode')-&gt;comment('\u30c1\u30e3\u30cd\u30eb\u306e\u72b6\u614b'); \/\/ `standby` \u306f\u9001\u4fe1\u3059\u3079\u304d\u3067\u306a\u3044<\/strong>\r\n<strong>    $table-&gt;string('display_name')-&gt;comment('LINE\u306e\u540d\u524d');<\/strong>\r\n<strong>    $table-&gt;timestamps();<\/strong>\r\n\r\n<strong>    $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users');<\/strong>\r\n<strong>});<\/strong><\/pre>\n<p>\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9163\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_2.png\" alt=\"\" width=\"387\" height=\"292\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_2.png 387w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_2-300x226.png 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/p>\n<h1>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066\u300c<strong>\u304a\u53cb\u9054\u306b\u306a\u3063\u305f<\/strong>\u300d\u300c<strong>\u304a\u53cb\u9054\u3092\u89e3\u9664\u3057\u305f<\/strong>\u300d\u72b6\u614b\u306b\u306a\u3063\u305f\u3068\u304d\u5b9f\u884c\u3059\u308b\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u8fd4\u4fe1\u7528\u306e\u753b\u50cf\u3092\u7528\u610f\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u3001<code>LINE<\/code>\u3067\u304a\u53cb\u9054\u767b\u9332\u304c\u5b8c\u4e86\u3057\u305f\u3089\u300c<strong>\u30bf\u30c3\u30d7\u3067\u304d\u308b\u753b\u50cf\u30e1\u30c3\u30bb\u30fc\u30b8\uff08\u30a4\u30e1\u30fc\u30b8\u30de\u30c3\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8\uff09<\/strong>\u300d\u3092\u8fd4\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u30a4\u30e1\u30fc\u30b8\u30de\u30c3\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306eURL\u306b\u3082\u66f8\u304b\u308c\u3066\u3044\u308b\u901a\u308a\u3001\u540c\u3058\u753b\u50cf\u3067\uff15\u3064\u306e\u30b5\u30a4\u30ba\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\ud83d\udcdd \u53c2\u8003URL\uff1a <a href=\"https:\/\/developers.line.biz\/ja\/reference\/messaging-api\/#imagemap-message\" target=\"_blank\" rel=\"noopener\">\u30a4\u30e1\u30fc\u30b8\u30de\u30c3\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8<\/a><\/p>\n<p>\u3055\u3089\u306b\u3001LINE\u306e\u4ed5\u69d8\u3067\u3053\u306eURL\u306b\u306f\u300c.png\u300d\u306a\u3069<strong>\u62e1\u5f35\u5b50\u3092\u542b\u3081\u3066\u306f\u3044\u3051\u306a\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4eca\u56de\u306f\u4e00\u756a\u5927\u304d\u306a\u753b\u50cf\uff081040 x 1040 \u30d4\u30af\u30bb\u30eb\uff09\u3092\u7528\u610f\u3057\u3001\u5404\u30b5\u30a4\u30ba\u306b\u30ea\u30b5\u30a4\u30ba\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u753b\u50cf\u306f\u4ee5\u4e0b\u306e\u3082\u306e\u3092\u4f7f\u3044\u307e\u3059\uff08\u30b5\u30f3\u30d7\u30eb\u306a\u306e\u3067\u5c0f\u3055\u304f\u3057\u3066\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9143\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_5.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_5.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_5-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_5-100x100.png 100w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3067\u306f\u3001\u9001\u4fe1\u3057\u305f\u3044\u753b\u50cf\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001<br \/>\n<code>\/storage\/app\/images\/line_user_registration.png<\/code><br \/>\n\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9144\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_6.png\" alt=\"\" width=\"447\" height=\"187\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_6.png 447w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_6-300x126.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6b21\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\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 LineRegistrationController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/LineRegistrationController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse App\\Models\\LineUser;\r\nuse App\\Models\\User;\r\nuse Illuminate\\Http\\Request;\r\nuse Illuminate\\Support\\Facades\\Hash;\r\nuse Illuminate\\Support\\Str;\r\nuse Laravel\\Socialite\\Facades\\Socialite;\r\nuse LINE\\LINEBot;\r\nuse LINE\\LINEBot\\Event\\FollowEvent;\r\nuse LINE\\LINEBot\\Event\\UnfollowEvent;\r\nuse LINE\\LINEBot\\HTTPClient\\CurlHTTPClient;\r\nuse LINE\\LINEBot\\ImagemapActionBuilder\\AreaBuilder;\r\nuse LINE\\LINEBot\\ImagemapActionBuilder\\ImagemapUriActionBuilder;\r\nuse LINE\\LINEBot\\MessageBuilder\\Imagemap\\BaseSizeBuilder;\r\nuse LINE\\LINEBot\\MessageBuilder\\ImagemapMessageBuilder;\r\nuse LINE\\LINEBot\\MessageBuilder\\TextMessageBuilder;\r\n\r\nclass LineRegistrationController extends Controller\r\n{\r\n    <strong>private $channel_secret, $access_token;<\/strong>\r\n\r\n<strong>    public function __construct() {<\/strong>\r\n\r\n<strong>        $this-&gt;channel_secret = env('LINE_CHANNEL_SECRET');<\/strong>\r\n<strong>        $this-&gt;access_token = env('LINE_ACCESS_TOKEN');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function image($size) {<\/strong>\r\n\r\n<strong>        $path = storage_path('app\/images\/line_user_registration.png');<\/strong>\r\n<strong>        $image = \\Image::make($path);<\/strong>\r\n\r\n<strong>        if($size &lt; 1040) {<\/strong>\r\n\r\n<strong>            $image-&gt;resize($size, $size);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return $image-&gt;response();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function callback(Request $request) {<\/strong>\r\n\r\n<strong>        $socialite_user = Socialite::driver('line')-&gt;stateless()-&gt;user();<\/strong>\r\n<strong>        $socialite_id = $socialite_user-&gt;getId();<\/strong>\r\n<strong>        $socialite_email = $socialite_user-&gt;getEmail();<\/strong>\r\n<strong>        $socialite_name = $socialite_user-&gt;getName();<\/strong>\r\n<strong>        $line_user = LineUser::where('line_id', $socialite_id)-&gt;first();<\/strong>\r\n\r\n<strong>        if(!is_null($line_user) &amp;&amp; !is_null($socialite_email)) {<\/strong>\r\n\r\n<strong>            \\DB::beginTransaction();<\/strong>\r\n\r\n<strong>            try {<\/strong>\r\n\r\n<strong>                $user = User::firstOrNew(['email' =&gt; $socialite_email]);<\/strong>\r\n<strong>                $user-&gt;email = $socialite_email;<\/strong>\r\n<strong>                $user-&gt;name = $socialite_name;<\/strong>\r\n<strong>                $user-&gt;password = Hash::make(Str::random()); \/\/ \u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30e9\u30f3\u30c0\u30e0<\/strong>\r\n<strong>                $user-&gt;save();<\/strong>\r\n\r\n<strong>                $line_user-&gt;user_id = $user-&gt;id;<\/strong>\r\n<strong>                $line_user-&gt;save();<\/strong>\r\n\r\n<strong>                $line_id = $line_user-&gt;line_id;<\/strong>\r\n<strong>                $client = new CurlHTTPClient($this-&gt;access_token);<\/strong>\r\n<strong>                $bot = new LINEBot($client, ['channelSecret' =&gt; $this-&gt;channel_secret]);<\/strong>\r\n<strong>                $text_message = new TextMessageBuilder('\u4f1a\u54e1\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01');<\/strong>\r\n<strong>                $bot-&gt;pushMessage($line_id, $text_message);<\/strong>\r\n\r\n<strong>                auth()-&gt;login($user); \/\/ \u81ea\u52d5\u30ed\u30b0\u30a4\u30f3<\/strong>\r\n<strong>                \\DB::commit();<\/strong>\r\n\r\n<strong>                return '\u4f1a\u54e1\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01';<\/strong>\r\n\r\n<strong>            } catch (\\Exception $e) {<\/strong>\r\n\r\n<strong>                \/\/ \u3053\u3053\u3067\u30a8\u30e9\u30fc\u51e6\u7406<\/strong>\r\n<strong>                \\DB::rollBack();<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return '\u5fc5\u8981\u306a\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002';<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function webhook(Request $request) {<\/strong>\r\n\r\n<strong>        $request_body = $request-&gt;getContent();<\/strong>\r\n<strong>        $hash = hash_hmac('sha256', $request_body, $this-&gt;channel_secret, true);<\/strong>\r\n<strong>        $signature = base64_encode($hash);<\/strong>\r\n\r\n<strong>        if($signature === $request-&gt;header('X-Line-Signature')) { \/\/ \u3053\u3053\u3067LINE\u304b\u3089\u306e\u9001\u4fe1\u3092\u691c\u8a3c\u3057\u3066\u307e\u3059<\/strong>\r\n\r\n<strong>            $client = new CurlHTTPClient($this-&gt;access_token);<\/strong>\r\n<strong>            $bot = new LINEBot($client, ['channelSecret' =&gt; $this-&gt;channel_secret]);<\/strong>\r\n\r\n<strong>            try {<\/strong>\r\n\r\n<strong>                $events = $bot-&gt;parseEventRequest($request_body, $signature);<\/strong>\r\n\r\n<strong>                foreach($events as $event) {<\/strong>\r\n\r\n<strong>                    $line_id = $event-&gt;getEventSourceId();<\/strong>\r\n<strong>                    $reply_token = $event-&gt;getReplyToken(); \/\/ \u8fd4\u4fe1\u7528\u30c8\u30fc\u30af\u30f3<\/strong>\r\n\r\n<strong>                    if($event instanceof FollowEvent) { \/\/ \u304a\u53cb\u9054\u767b\u9332\u3055\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                        \/\/ DB\u3078\u53d6\u5f97\u60c5\u5831\u3092\u4fdd\u5b58<\/strong>\r\n<strong>                        $mode = $event-&gt;getMode();<\/strong>\r\n<strong>                        $profile = $bot-&gt;getProfile($line_id)-&gt;getJSONDecodedBody();<\/strong>\r\n<strong>                        $display_name = $profile['displayName'];<\/strong>\r\n\r\n<strong>                        $line_user = LineUser::firstOrNew(['line_id' =&gt; $line_id]);<\/strong>\r\n<strong>                        $line_user-&gt;mode = $mode;<\/strong>\r\n<strong>                        $line_user-&gt;display_name = $display_name;<\/strong>\r\n<strong>                        $line_user-&gt;save();<\/strong>\r\n\r\n<strong>                        \/\/ \u81ea\u52d5\u8fd4\u4fe1\uff08\u767b\u9332\u30ea\u30f3\u30af\u9001\u4fe1\uff09<\/strong>\r\n<strong>                        $width = 1040;<\/strong>\r\n<strong>                        $height = 1040;<\/strong>\r\n<strong>                        $alt_text = '\u4f1a\u54e1\u767b\u9332\u3067\u304d\u307e\u3059\uff01'; \/\/ \u4ee3\u66ff\u30c6\u30ad\u30b9\u30c8<\/strong>\r\n<strong>                        $base_url = route('line.registration.image', ''); \/\/ \u753b\u50cfURL<\/strong>\r\n<strong>                        $base_size = new BaseSizeBuilder($height, $width); \/\/ \u57fa\u672c\u753b\u50cf\u306e\u30b5\u30a4\u30ba<\/strong>\r\n\r\n<strong>                        $x = 0;<\/strong>\r\n<strong>                        $y = 0;<\/strong>\r\n<strong>                        $area = new AreaBuilder($x, $y, $width, $height);<\/strong>\r\n<strong>                        $link_url = Socialite::driver('line') \/\/ LINE\u30ed\u30b0\u30a4\u30f3\u306eURL<\/strong>\r\n<strong>                            -&gt;redirect()<\/strong>\r\n<strong>                            -&gt;getTargetUrl();<\/strong>\r\n<strong>                        $image_map_actions = [ new ImagemapUriActionBuilder($link_url, $area)];<\/strong>\r\n\r\n<strong>                        $image_map_message = new ImagemapMessageBuilder(<\/strong>\r\n<strong>                            $base_url,<\/strong>\r\n<strong>                            $alt_text,<\/strong>\r\n<strong>                            $base_size,<\/strong>\r\n<strong>                            $image_map_actions<\/strong>\r\n<strong>                        );<\/strong>\r\n<strong>                        $bot-&gt;replyMessage($reply_token, $image_map_message);<\/strong>\r\n\r\n<strong>                    } else if($event instanceof UnfollowEvent) { \/\/ \u304a\u53cb\u9054\u767b\u9332\u304c\u89e3\u9664\u3055\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                        LineUser::where('line_id', $line_id)-&gt;delete();<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            } catch (\\Exception $e) {<\/strong>\r\n\r\n<strong>                \/\/ \u3053\u3053\u3067\u30a8\u30e9\u30fc\u51e6\u7406<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u30b3\u30fc\u30c9\u304c\u9577\u3044\u306e\u3067\u3059\u304c\u3001\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>image()<\/strong><\/p>\n<p>\uff15\u3064\u306e\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u3092\u7528\u610f\u3059\u308b<\/p>\n<p><strong>callback()<\/strong><\/p>\n<p>LINE \u30ed\u30b0\u30a4\u30f3\u3067\u8a31\u53ef\u3057\u305f\u5834\u5408\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u308b\u90e8\u5206\u3067\u3059\u3002\u3053\u306e\u4e2d\u3067\u4f1a\u54e1\u767b\u9332\u3068\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>webhook()\u00a0<\/strong><\/p>\n<p>\u304a\u53cb\u9054\u767b\u9332\uff06\u89e3\u9664\u3057\u305f\u3068\u304d\u306bLINE\u304b\u3089\u300c\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u300d\u3068\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308b\u90e8\u5206\u3067\u3059\u3002\u3053\u306e\u4e2d\u3067\u306f\u3001LINE\u30e6\u30fc\u30b6\u30fc\u306e\u767b\u9332\u3068\u81ea\u52d5\u8fd4\u4fe1\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u305d\u3057\u3066\u3001\u5148\u307b\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f7f\u3046\u305f\u3081\u306e\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>use App\\Http\\Controllers\\LineRegistrationController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('line')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('registration\/image\/{size}', [LineRegistrationController::class, 'image'])<\/strong>\r\n<strong>        -&gt;where('size', '240|300|460|700|1040')<\/strong>\r\n<strong>        -&gt;name('line.registration.image');<\/strong>\r\n<strong>    Route::get('registration\/callback', [LineRegistrationController::class, 'callback']);<\/strong>\r\n<strong>    Route::post('registration\/webhook', [LineRegistrationController::class, 'webhook']);<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u4eca\u56de\u306f\u753b\u50cf\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u7279\u5b9a\u306e\u30ea\u30f3\u30af\u3078\u98db\u3076\u3060\u3051\u3067\u3057\u305f\u304c\u3001\u306a\u3093\u3068LINE\u306e\u300c<strong>\u30a4\u30e1\u30fc\u30b8\u30de\u30c3\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8<\/strong>\u300d\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u3053\u306e\u90e8\u5206\u306f\u3001******.com \u306b\u98db\u3076<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3088\u3046\u306b<strong>\u30bf\u30c3\u30d7\u3059\u308b\u5834\u6240\u306b\u3088\u3063\u3066\u69d8\u3005\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5192\u982d\u3067\u7d39\u4ecb\u3057\u305f\u753b\u50cf\u306e\u3088\u3046\u306b\u30bf\u30c3\u30d7\u3059\u308b\u5834\u6240\u306b\u5fdc\u3058\u3066\u30ea\u30f3\u30af\u5148\u3092\u5909\u66f4\u3057\u305f\u308a\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9137\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1.png\" alt=\"\" width=\"533\" height=\"191\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1.png 533w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_1-300x108.png 300w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/p>\n<p>\u306a\u304a\u3001\u5b9f\u969b\u306b\u79c1\u304c\u4f53\u9a13\u3057\u305f\u304a\u5e97\u3067\u306f\u3001\u30bf\u30c3\u30d7\u3059\u308b\u5834\u6240\u306b\u3088\u3063\u3066\u300c<strong>\u4f1a\u54e1\u8a3c<\/strong>\u300d\u3084\u300c<strong>\u8cfc\u5165\u5c65\u6b74<\/strong>\u300d\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u305d\u308c\u3092\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u3057\u3066\u4f1a\u54e1\u60c5\u5831\u304c\u81ea\u52d5\u7684\u306b\u8fd4\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3059\u304c\u3067\u3059\u306d \ud83d\udc4d<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u3001<code>LINE Developers<\/code>\u3067\u4f5c\u3063\u305f<code>Messaging API<\/code>\u30c1\u30e3\u30cd\u30eb\u3068\u304a\u53cb\u9054\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b \u304a\u53cb\u9054\u306b\u306a\u308b\u306b\u306f\u3001\u300c<strong>Messaging API \u8a2d\u5b9a<\/strong>\u300d\u30bf\u30d6\u306eQR\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u3068\u697d\u3067\u3059\ud83d\udc4d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9154\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_7.png\" alt=\"\" width=\"592\" height=\"421\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_7.png 592w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_7-300x213.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9156\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_8.png\" alt=\"\" width=\"300\" height=\"617\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_8.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_8-146x300.png 146w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u30d4\u30f3\u30dd\u30fc\u30f3\uff01\u3068\u3044\u3046\u97f3\u3068\u3068\u3082\u306b\u753b\u50cf\u304c\u9001\u3089\u308c\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u307e\u3059\ud83d\ude0a<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u753b\u50cf\u3092\u30bf\u30c3\u30d7\u3057\u3066\u4f1a\u54e1\u767b\u9332\u3067\u304d\u308b\u304b\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\uff1f\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9158\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_9.png\" alt=\"\" width=\"300\" height=\"617\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_9.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_9-146x300.png 146w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u306f\u3044\u2757LINE\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u79fb\u52d5\u3057\u307e\u3057\u305f\u3002\uff08\u82f1\u8a9e\u8868\u8a18\u306a\u306e\u306f\u79c1\u306e\u8a2d\u5b9a\u306e\u305b\u3044\u3067\u3059\u3002\u307e\u3060\u307e\u3060\u52c9\u5f37\u4e2d\u306a\u306e\u3067&#8230;\uff09<\/p>\n<p>\u3067\u306f\u3001\u300c<strong>Allow\uff08\u8a31\u53ef\u3059\u308b\uff09<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9160\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_11.png\" alt=\"\" width=\"236\" height=\"40\" \/><\/p>\n<p>\u30a2\u30d7\u30ea\u5185\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u4f1a\u54e1\u767b\u9332\u306e\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9162\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_10.png\" alt=\"\" width=\"300\" height=\"390\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_10.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/05\/laravel_user_registration_10-231x300.png 231w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>LINE\u306e\u30d7\u30c3\u30b7\u30e5\u30fb\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65b9\u3082\u9001\u4fe1\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u3042\u3068\u306f\u3001\u540c\u69d8\u306b<code>LINE ID<\/code>\u3092\u4f7f\u3048\u3070\u3044\u3064\u3067\u3082\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u300c\u5546\u54c1\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u300d\u30e1\u30fc\u30eb\u3084\u4e8b\u524d\u306b\u8a31\u53ef\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u5272\u5f15\u30bb\u30fc\u30eb\u306e\u304a\u77e5\u3089\u305b\u306a\u3069\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>LINE\u306e\u304a\u53cb\u9054\u767b\u9332\u306fQR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\u3060\u3051\u3067\u3059\u3050\u5b8c\u4e86\u3067\u304d\u308b\u306e\u3067\u3001\u4f1a\u54e1\u767b\u9332\u306b\u8a98\u5c0e\u3057\u3084\u3059\u3044\uff08\u5f8c\u307b\u3069\u540d\u524d\u306a\u3069\u3092\u767b\u9332\u3059\u308b\u306b\u3057\u3066\u3082\u3001\u5165\u308a\u53e3\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u3088\u308a\u767b\u9332\u3057\u3088\u3046\u3068\u8003\u3048\u3084\u3059\u3044\uff09<\/li>\n<li>\u304a\u5ba2\u3055\u3093\u304b\u3089\u3059\u308b\u3068\u3001\u3044\u3061\u3044\u3061\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u899a\u3048\u3066\u3044\u306a\u304f\u3066\u3082\u30bf\u30c3\u30d7\u3059\u308b\u3060\u3051\u3067\u904e\u53bb\u306e\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229<\/li>\n<li>LINE\u306e\u304a\u53cb\u9054\u3092\u89e3\u6d88\u3055\u308c\u3066\u3082\u3001\u4f1a\u54e1\u30c7\u30fc\u30bf\u81ea\u4f53\u306f\u6b8b\u308b\u3002\uff08\u30ed\u30b0\u30a4\u30f3\u3082\u3067\u304d\u308b\uff09<\/li>\n<li>LINE\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306f\u753b\u50cf\u3060\u3051\u3067\u306a\u304f\u3001\u52d5\u753b\u3084\u4f4d\u7f6e\u60c5\u5831\u306a\u3069\u3055\u307e\u3056\u307e\u306a\u3082\u306e\u304c\u3042\u308b\u305f\u3081\u3001\u5e0c\u671b\u306e\u6a5f\u80fd\u3092\u3064\u304f\u308a\u3084\u3059\u3044<\/li>\n<li>\u306a\u306b\u3088\u308aLINE\u306e\u666e\u53ca\u7387\u304c\u5927\u304d\u3044\uff082020\u5e749\u6708\u672b\u6642\u70b9\u3067\u3001\u56fd\u5185\u306e\u6708\u9593\u5229\u7528\u8005\u6570\u306f\u30018,600\u4e07\u4eba\uff1a <a href=\"https:\/\/www.linebiz.com\/sites\/default\/files\/media\/jp\/LINE%20Business%20Guide_202101-06_summary_v1.1.pdf\" target=\"_blank\" rel=\"noopener\">\u5f15\u7528\u8cc7\u6599<\/a>\uff09<\/li>\n<\/ul>\n<p>\u305c\u3072\u4eca\u56de\u306e\u6a5f\u80fd\u3067\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u304a\u8003\u3048\u306e\u5834\u5408\u306f\u304a\u554f\u3044\u5408\u308f\u305b\u3088\u308a\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u5b9f\u4f53\u9a13\u3092\u5143\u306b\u3057\u3066\u300c<code>LINE<\/code>\u3092\u4f7f\u3063\u305f\u4f1a\u54e1\u767b\u9332\u30b7\u30b9\u30c6\u30e0\u300d\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u60f3\u5b9a\u3057\u3066\u3044\u305f\u3088\u308a\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u5927\u304d\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u904e\u53bb\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u306e\u304a\u304b\u3052\u3067\u307b\u307c\u3069\u3053\u306b\u3082\u30cf\u30de\u308b\u3053\u3068\u306a\u304f\u4f5c\u696d\u3092\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\uff08\u30d6\u30ed\u30b0\u3092\u66f8\u304f\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u904e\u53bb\u306e\u81ea\u5206\u306b\u52a9\u3051\u3066\u3082\u3089\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u3093\u3067\u3059\u306d\ud83d\udc4d\uff09<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u30e1\u30ac\u30cd\u3092\u8cb7\u3044\u66ff\u3048\u305f\u306e\u306f\u3001\u9f3b\u306e\u90e8\u5206\u3092\u56fa\u5b9a\u3059\u308b\u91d1\u5177\u304c\u30dc\u30c3\u30ad\u30ea\u6298\u308c\u3066\u3057\u307e\u3063\u305f\u304b\u3089\u306a\u3093\u3067\u3059\u304c\u3001\u8cb7\u3044\u66ff\u3048\u3066\u307f\u308b\u3068\u3001\u6700\u8fd1\u306e\u30e1\u30ac\u30cd\u3063\u3066\u30db\u30f3\u30c8\u306b\u8efd\u3044\u3093\u3060\u306a\u3068\u5b9f\u611f\u3057\u307e\u3059\u3002<\/p>\n<p>\u6c17\u5206\u304c\u3044\u3044\u306e\u3067\u3001\u3053\u308c\u3092\u6a5f\u306b\u6bdb\u5148\u3092\u904a\u3070\u305b\u3066\u307f\u3088\u3046\u304b\u306a\u2753\u2753<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u305c\u3072\u7686\u3055\u3093\u3082LINE\u3092\u4f7f\u3063\u3066\u4f1a\u54e1\u767b\u9332\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4445 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png\" alt=\"\" width=\"370\" height=\"310\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2-300x251.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\uff11\u9031\u9593\u4ee5\u4e0a\u304b\u304b\u308b\u3068\u3053\u308d\u3001<br \/>\n\uff13\u65e5\u3067\u4ed5\u4e0a\u3052\u3066\u304f\u308c\u307e\u3057\u305f\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u65b0\u3057\u3044\u30e1\u30ac\u30cd\u306b\u8cb7\u3044\u63db\u3048\u308b\u305f\u3081\u306bCM\u3067\u3082\u3088\u304f\u898b\u304b\u3051\u308b\u304a\u5e97\u306b\u884c\u304f\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306b\u3042\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u76ee\u306b\u6b62\u307e\u308a\u307e\u3057\u305f\u3002 \u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=9136\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel\u3011\u5e97\u5148\u3067LINE\u53cb\u9054\u767b\u9332\u3057\u3001\u4f1a\u54e1\u767b\u9332\u3068\u9023\u643a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":9171,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[164,7],"class_list":["post-9136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-line","tag-7"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9136","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=9136"}],"version-history":[{"count":17,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9136\/revisions"}],"predecessor-version":[{"id":9210,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9136\/revisions\/9210"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/9171"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}