{"id":12564,"date":"2024-04-21T07:00:32","date_gmt":"2024-04-20T22:00:32","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12564"},"modified":"2024-05-09T17:17:04","modified_gmt":"2024-05-09T08:17:04","slug":"laravel%ef%bc%9a-line-%e3%81%ae%e9%a1%a7%e5%ae%a2%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e5%a4%b1%e3%82%8f%e3%81%aa%e3%81%84%e3%83%aa%e3%82%b9%e3%82%af%e3%83%98%e3%83%83%e3%82%b8","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12564","title":{"rendered":"Laravel\uff1a LINE \u306e\u9867\u5ba2\u30ea\u30b9\u30c8\u3092\u5931\u308f\u306a\u3044\u30ea\u30b9\u30af\u30d8\u30c3\u30b8"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u306fLINE\u306b\u95a2\u3059\u308b\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u8a71\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u3082\u540c\u3058\u304f<code>LINE<\/code>\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306e\u8a71\u3067\u3059\uff08\u7b11\uff09<\/p>\n<p><code>LINE<\/code>\u306f\u300c<strong>\u958b\u5c01\u7387\u304c\u9ad8\u3044<\/strong>\u300d\u300c<strong>\u5230\u9054\u7387\u3082\u9ad8\u3044<\/strong>\u300d\u3068\u3044\u3046\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u304c<br \/>\n\u3042\u308b\u306e\u3067\u30de\u30fc\u30b1\u30bf\u30fc\u3055\u3093\u306f\u597d\u3093\u3067\u4f7f\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u306e\u53cd\u9762\u5927\u304d\u306a\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50\u3055\u308c\u3084\u3059\u3044<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4eba\u6c17\u3067\u3042\u308b\u304c\u3086\u3048\u306b\u3044\u308d\u3093\u306a\u4eba\u304c\u300c\u3084\u3063\u3061\u3083\u3044\u3051\u306a\u3044\u4e8b\u300d\u3092\u3059\u308b\u3093\u3067\u3057\u3087\u3046\u306d\u3002<br \/>\n<code>LINE<\/code>\u3068\u3057\u3066\u3082\u51cd\u7d50\u3057\u3084\u3059\u304f\u305b\u3056\u308b\u3092\u5f97\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50\u3055\u308c\u308b\u3068\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u305d\u3046\u2757<\/p>\n<p><strong style=\"font-size: 35px;\">\u3053\u308c\u307e\u3067\u30b2\u30c3\u30c8\u3057\u305f\u5168\u30ea\u30b9\u30c8\u3092\u5931\u3046<\/strong><\/p>\n<p>\u308f\u3051\u3067\u3059\u3002\ud83d\ude28<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3053\u308c\u307e\u3067<code>10,000<\/code>\u898b\u8fbc\u307f\u5ba2\u3068\u304a\u53cb\u9054\u306b\u306a\u3063\u3066\u3044\u305f\u3068\u3057\u3066\u3082<br \/>\n\u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50\u3055\u308c\u305f\u3089\u3001\u305d\u306e<strong>\u30ea\u30b9\u30c8\u306f\u5168\u3066\u5931\u308f\u308c\u307e\u3059\u3002\u30bc\u30ed\uff01<\/strong><\/p>\n<p>\u203b \u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3067\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u304a\u3044\u3066\u3082\u7d50\u5c40\u53cb\u9054\u767b\u9332\u3057\u306a\u3044\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u9001\u308c\u306a\u3044\u306e\u3067<code>LINE ID<\/code>\u304c\u3042\u3063\u3066\u3082\u610f\u5473\u304c\u306a\u3044\u3093\u3067\u3059\u2026\u3002<\/p>\n<p>\u3053\u308c\u304c\u5927\u304d\u306a\u30c7\u30e1\u30ea\u30c3\u30c8\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code>\u3067\u3053\u306e\u300c<strong>LINE \u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50<\/strong>\u300d\u306e<br \/>\n\u30ea\u30b9\u30af\u30d8\u30c3\u30b8\u3092\u3059\u308b\uff08\u4fdd\u967a\u3092\u304b\u3051\u3066\u304a\u304f\uff09\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/>\u300c\u305f\u3057\u304b\u306bX\uff08\u65e7Twitter\uff09\u306b<br \/>\nLINE\u3078\u8a98\u5c0e\u3057\u3088\u3046\u3068\u3059\u308b<br \/>\n\u65e5\u672c\u8a9e\u306e\u602a\u3057\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u3042\u308b\u306d\u2026\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 11.x<\/p>\n<h1>\u30ea\u30b9\u30af\u30d8\u30c3\u30b8\u3059\u308b\u65b9\u6cd5<\/h1>\n<p><code>LINE<\/code>\u3078\u767b\u9332\u3057\u3066\u3082\u3089\u3063\u305f\u3089\u3001\u4e00\u756a\u306f\u3058\u3081\u306b<br \/>\n\u30e1\u30eb\u30de\u30ac\u3078\u8a98\u5c0e\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u3001\u300c<strong>\u30e1\u30eb\u30de\u30ac\u9650\u5b9a\u306e\u30af\u30fc\u30dd\u30f3\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\ud83d\ude04<\/strong>\u300d\u3068\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\uff08\u3053\u308c\u3067\u66f4\u306b\u96c6\u5ba2\u3057\u305f\u304a\u5ba2\u3055\u3093\u3092\u300c\u80b2\u3066\u308b\u300d\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff01\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001<code>DB<\/code>\u306e\u65b9\u3067\u306f<code>LINE<\/code>\u30e6\u30fc\u30b6\u30fc\u3068\u3001\u30e1\u30eb\u30de\u30ac\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u7d10\u3065\u304f\u3088\u3046\u306b\uff08\u540d\u5bc4\u305b\uff09\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u30ea\u30b9\u30af\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50\u5f8c\u306b\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u3064\u304f\u308a\u3001\u305d\u3053\u306b\u53cb\u9054\u8ffd\u52a0\u3055\u308c\u305f\u5834\u5408\u3001<code>LINE ID<\/code>\u304b\u3089\u30c7\u30fc\u30bf\u3092\u7d10\u4ed8\u3051\u3066\u904e\u53bb\u30c7\u30fc\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u30e1\u30fc\u30eb\u3067\u30bb\u30fc\u30eb\u30b9\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\uff01<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u53c2\u8003\u30da\u30fc\u30b8\u3092\u898b\u3066\u3001\u4ee5\u4e0b\u306e\u4f5c\u696d\u3092\u5b8c\u4e86\u3055\u305b\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>LINE Messaging API \u3092\u6709\u52b9\u306b\u3059\u308b<\/li>\n<li>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u300c<strong>linecorp\/line-bot-sdk<\/strong>\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<li>CSRF\u30c8\u30fc\u30af\u30f3\u306e\u30c1\u30a7\u30c3\u30af\u3092\u89e3\u9664<\/li>\n<\/ul>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff11\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=12168\" target=\"_blank\" rel=\"noopener\">Line Messaging API \u3067\u753b\u50cf\u3064\u304d\u901a\u5831\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b\uff08\u795e\u6238\u5e02\u306b\u5f71\u97ff\u3055\u308c\u3066\uff09<\/a><\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff12\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=12168#_ngrok\" target=\"_blank\" rel=\"noopener\">\u304a\u307e\u3051\uff1a ngrok \u306b\u3064\u3044\u3066<\/a><\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff13\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=12538#CSRF\" target=\"_blank\" rel=\"noopener\">CSRF\u30c8\u30fc\u30af\u30f3\u306e\u30c1\u30a7\u30c3\u30af\u3092\u89e3\u9664\u3059\u308b<\/a><\/p>\n<p>\u203b\u306a\u304a\u3001<code>Laravel 11.x<\/code>\u304b\u3089<code>CSRF<\/code>\u30c8\u30fc\u30af\u30f3\u89e3\u9664\u306e\u8a2d\u5b9a\u65b9\u6cd5\u304c\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3067\u306f\u4eca\u56de\u3082\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>DB\u307e\u308f\u308a\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5468\u308a\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:model LineUser -m\r\nphp artisan make:model NewsletterUser -m\r\n<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_create_line_users_table.php<\/strong><\/p>\n<\/div>\n<div>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Migrations\\Migration;\r\nuse Illuminate\\Database\\Schema\\Blueprint;\r\nuse Illuminate\\Support\\Facades\\Schema;\r\n\r\nreturn new class extends Migration\r\n{\r\n    \/**\r\n     * Run the migrations.\r\n     *\/\r\n    public function up(): void\r\n    {\r\n        Schema::create('line_users', function (Blueprint $table) {\r\n            <strong>$table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;uuid()-&gt;unique()-&gt;comment('UUID');<\/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');<\/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    }\r\n\r\n    \/**\r\n     * Reverse the migrations.\r\n     *\/\r\n    public function down(): void\r\n    {\r\n        Schema::dropIfExists('line_users');\r\n    }\r\n};<\/pre>\n<\/div>\n<p><strong>database\/migrations\/****_**_**_******_create_newsletter_users_table.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Migrations\\Migration;\r\nuse Illuminate\\Database\\Schema\\Blueprint;\r\nuse Illuminate\\Support\\Facades\\Schema;\r\n\r\nreturn new class extends Migration\r\n{\r\n    \/**\r\n     * Run the migrations.\r\n     *\/\r\n    public function up(): void\r\n    {\r\n        Schema::create('newsletter_users', function (Blueprint $table) {\r\n            <strong>$table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;uuid()-&gt;unique()-&gt;comment('UUID');<\/strong>\r\n<strong>            $table-&gt;string('email')-&gt;unique()-&gt;comment('\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9');<\/strong>\r\n<strong>            $table-&gt;boolean('is_agreed')-&gt;default(false)-&gt;comment('\u53d7\u3051\u53d6\u308a\u8a31\u53ef');<\/strong>\r\n<strong>            $table-&gt;timestamps();<\/strong>\r\n        });\r\n    }\r\n\r\n    \/**\r\n     * Reverse the migrations.\r\n     *\/\r\n    public function down(): void\r\n    {\r\n        Schema::dropIfExists('newsletter_users');\r\n    }\r\n};<\/pre>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>DB<\/code>\u3092\u521d\u671f\u5316\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12576\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_7.png\" alt=\"\" width=\"416\" height=\"306\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_7.png 416w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_7-300x221.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12577\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_8.png\" alt=\"\" width=\"400\" height=\"288\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_8.png 400w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_8-300x216.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<\/div>\n<\/div>\n<h1>\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u7528\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u304a\u53cb\u9054\u767b\u9332\u3055\u308c\u305f\u3068\u304d\u3084\u30e1\u30c3\u30bb\u30fc\u30b8\u304c<br \/>\n\u9001\u4fe1\u3055\u308c\u305f\u3068\u304d\u306b\u30c7\u30fc\u30bf\u53d7\u4fe1\u3059\u308b\u300c\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u300d\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:controller LineMarketingWebhookController<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/LineMarketingWebhookController.php<\/strong><\/p>\n<\/div>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers;<\/strong>\r\n\r\n<strong>use App\\Models\\LineUser;<\/strong>\r\n<strong>use GuzzleHttp\\Client as GuzzleClient;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n<strong>use Illuminate\\Support\\Str;<\/strong>\r\n<strong>use LINE\\Clients\\MessagingApi\\Configuration;<\/strong>\r\n<strong>use LINE\\Clients\\MessagingApi\\Api\\MessagingApiApi;<\/strong>\r\n<strong>use LINE\\Clients\\MessagingApi\\Model\\ReplyMessageRequest;<\/strong>\r\n<strong>use LINE\\Clients\\MessagingApi\\Model\\TextMessage;<\/strong>\r\n<strong>use LINE\\Parser\\EventRequestParser;<\/strong>\r\n<strong>use LINE\\Webhook\\Model\\FollowEvent;<\/strong>\r\n\r\n<strong>class LineMarketingWebhookController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    private $channel_secret, $access_token;<\/strong>\r\n\r\n<strong>    public function __construct()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;channel_secret = env('LINE_CHANNEL_SECRET'); \/\/ \u672c\u6765\u306f config \u304b\u3089\u53d6\u5f97\u3059\u3079\u304d\u3067\u3059<\/strong>\r\n<strong>        $this-&gt;access_token = env('LINE_ACCESS_TOKEN'); \/\/ \u672c\u6765\u306f config \u304b\u3089\u53d6\u5f97\u3059\u3079\u304d\u3067\u3059<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function receive(Request $request)<\/strong>\r\n<strong>    {<\/strong>\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')) {<\/strong>\r\n\r\n<strong>            $client = new GuzzleClient;<\/strong>\r\n<strong>            $config = new Configuration();<\/strong>\r\n<strong>            $config-&gt;setAccessToken($this-&gt;access_token);<\/strong>\r\n\r\n<strong>            $this-&gt;api = new MessagingApiApi(<\/strong>\r\n<strong>                client: $client,<\/strong>\r\n<strong>                config: $config,<\/strong>\r\n<strong>            );<\/strong>\r\n\r\n<strong>            try {<\/strong>\r\n\r\n<strong>                $event_parser = EventRequestParser::parseEventRequest($request_body, $this-&gt;channel_secret, $signature);<\/strong>\r\n\r\n<strong>                foreach($event_parser-&gt;getEvents() as $event) {<\/strong>\r\n\r\n<strong>                    if($event instanceof FollowEvent) { \/\/ \u304a\u53cb\u9054\u306e\u767b\u9332\u3057\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                        $reply_token = $event-&gt;getReplyToken();<\/strong>\r\n<strong>                        $line_id = $event-&gt;getSource()-&gt;getUserId();<\/strong>\r\n<strong>                        $mode = $event-&gt;getMode();<\/strong>\r\n<strong>                        $profile = $this-&gt;api-&gt;getProfile($line_id);<\/strong>\r\n<strong>                        $display_name = $profile-&gt;getDisplayName();<\/strong>\r\n\r\n<strong>                        if(is_null($line_id) || is_null($mode)) {<\/strong>\r\n\r\n<strong>                            continue;<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                        $line_user = LineUser::where('line_id', $line_id)-&gt;first();<\/strong>\r\n\r\n<strong>                        if(is_null($line_user)) {<\/strong>\r\n\r\n<strong>                            $line_user = new LineUser;<\/strong>\r\n<strong>                            $line_user-&gt;uuid = Str::uuid();<\/strong>\r\n<strong>                            $line_user-&gt;line_id = $line_id;<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                        $line_user-&gt;mode = $mode; \/\/ \u30c1\u30e3\u30cd\u30eb\u306e\u72b6\u614b<\/strong>\r\n<strong>                        $line_user-&gt;display_name = $display_name; \/\/ LINE\u306e\u8868\u793a\u540d<\/strong>\r\n<strong>                        $line_user-&gt;save();<\/strong>\r\n\r\n<strong>                        $text = view('line_webhook.thanks_text', [<\/strong>\r\n<strong>                            'line_user' =&gt; $line_user,<\/strong>\r\n<strong>                        ])-&gt;render();<\/strong>\r\n<strong>                        $this-&gt;replyText($reply_token, $text);<\/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>        } else {<\/strong>\r\n\r\n<strong>            abort(404);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function replyText(string $reply_token, string $text)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $message = new TextMessage([<\/strong>\r\n<strong>            'type' =&gt; 'text',<\/strong>\r\n<strong>            'text' =&gt; $text,<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>        $request = new ReplyMessageRequest([<\/strong>\r\n<strong>            'replyToken' =&gt; $reply_token,<\/strong>\r\n<strong>            'messages' =&gt; [$message],<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>        $this-&gt;api-&gt;replyMessage($request);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>\u30e1\u30c3\u30bb\u30fc\u30b8\u7528\u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u5148\u307b\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u4e2d\u3067\u30bb\u30c3\u30c8\u3057\u305f<br \/>\n\u300c<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u7528<\/strong>\u300d\u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:view line_webhook.thanks_text<\/strong><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/line_webhook\/thanks_text.blade.php<\/strong><\/p>\n<div>\n<pre><strong>{{ $line_user-&gt;display_name }}\u3055\u3093\u3001\u3053\u3093\u306b\u3061\u306f\uff01 Console dot Log \u306e\u3059\u3053\u3072\u3067\u3059\u3002<\/strong>\r\n<strong>\u304a\u53cb\u9054\u8ffd\u52a0\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/strong>\r\n\r\n<strong>\u3053\u308c\u304b\u3089\u3001\u6bce\u6708 26\u65e5 \u306b\u304a\u5f97\u306a\u30af\u30fc\u30dd\u30f3\u60c5\u5831\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002<\/strong>\r\n<strong>\u305c\u3072\u3001\u304a\u697d\u3057\u307f\u306b\uff01<\/strong>\r\n\r\n<strong>\u203b \u901a\u77e5\u304c\u6c17\u306b\u306a\u308b\u65b9\u306f\u3001\u300c\u30c8\u30fc\u30af\u8a2d\u5b9a \u2192 \u901a\u77e5\u300d\u3092 OFF \u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n\r\n<strong>\u306a\u304a\u3001\u30e1\u30eb\u30de\u30ac\u306b\u767b\u9332\u3059\u308b\u3068\u300c\u30e1\u30eb\u30de\u30ac\u9650\u5b9a\u30af\u30fc\u30dd\u30f3\u300d\u3082\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002<\/strong>\r\n<strong>\u305c\u3072\u3001\u767b\u9332\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/strong>\r\n\r\n<strong>{{ route('newsletter.create', $line_user-&gt;uuid) }}<\/strong><\/pre>\n<\/div>\n<h1>\u30e1\u30eb\u30de\u30ac\u767b\u9332\u7528\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u305d\u3057\u3066\u3001\u300c<strong>\u30e1\u30eb\u30de\u30ac\u767b\u9332\u7528<\/strong>\u300d\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:controller NewsletterController<\/strong><\/pre>\n<\/div>\n<p>\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/NewsletterController.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers;<\/strong>\r\n\r\n<strong>use App\\Models\\LineUser;<\/strong>\r\n<strong>use App\\Models\\NewsletterUser;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n\r\n<strong>class NewsletterController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function create(string $uuid)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $line_user = $this-&gt;getLineUserByUuid($uuid);<\/strong>\r\n\r\n<strong>        return view('newsletter.create', [<\/strong>\r\n<strong>            'line_user' =&gt; $line_user,<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function store(Request $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059<\/strong>\r\n\r\n<strong>        $line_user = $this-&gt;getLineUserByUuid($request-&gt;uuid);<\/strong>\r\n\r\n<strong>        $newsletter_user = new NewsletterUser();<\/strong>\r\n<strong>        $newsletter_user-&gt;uuid = $line_user-&gt;uuid;<\/strong>\r\n<strong>        $newsletter_user-&gt;email = $request-&gt;email;<\/strong>\r\n<strong>        $newsletter_user-&gt;is_agreed = $request-&gt;is_agreed;<\/strong>\r\n<strong>        $newsletter_user-&gt;save();<\/strong>\r\n\r\n<strong>        return '\u30e1\u30eb\u30de\u30ac\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function getLineUserByUuid(string $uuid)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $line_user = LineUser::where('uuid', $uuid)-&gt;first();<\/strong>\r\n\r\n<strong>        if(is_null($line_user)) { \/\/ \u304a\u53cb\u9054\u767b\u9332\u3057\u3066\u3044\u306a\u3044\u5834\u5408<\/strong>\r\n\r\n<strong>            abort(404);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return $line_user;<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>\u30e1\u30eb\u30de\u30ac\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u7528\u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u5148\u307b\u3069<code>NewsletterController.php<\/code>\u5185\u3067\u30bb\u30c3\u30c8\u3057\u305f\u30d5\u30a9\u30fc\u30e0\u7528\u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:view newsletter.create<\/strong><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/newsletter\/create.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>    &lt;head&gt;<\/strong>\r\n<strong>        &lt;script src=\"https:\/\/cdn.tailwindcss.com\/3.4.1\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>    &lt;\/head&gt;<\/strong>\r\n<strong>    &lt;body&gt;<\/strong>\r\n<strong>        &lt;div class=\"p-5\"&gt;<\/strong>\r\n<strong>            &lt;h1 class=\"text-2xl font-bold text-center\"&gt;\u30e1\u30eb\u30de\u30ac\u767b\u9332\u30d5\u30a9\u30fc\u30e0&lt;\/h1&gt;<\/strong>\r\n<strong>            &lt;form method=\"POST\" action=\"{{ route('newsletter.store') }}\" class=\"flex flex-col space-y-2 w-full max-w-md mx-auto\"&gt;<\/strong>\r\n<strong>                @csrf<\/strong>\r\n<strong>                &lt;input type=\"hidden\" name=\"uuid\" value=\"{{ $line_user-&gt;uuid }}\"&gt;<\/strong>\r\n<strong>                &lt;label&gt;<\/strong>\r\n<strong>                    \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n<strong>                    &lt;input type=\"email\" name=\"email\" class=\"px-4 py-2 border border-gray-300 focus:ring-2 focus:ring-blue-500 focus:border-transparent rounded-md shadow-sm w-full\"&gt;<\/strong>\r\n<strong>                &lt;\/label&gt;<\/strong>\r\n<strong>                &lt;label&gt;<\/strong>\r\n<strong>                    &lt;div class=\"p-2\"&gt;<\/strong>\r\n<strong>                        &lt;input type=\"checkbox\" name=\"is_agreed\" value=\"1\" class=\"mr-2\"&gt;<\/strong>\r\n<strong>                        \u30e1\u30eb\u30de\u30ac\u3067\u304a\u5f97\u306a\u60c5\u5831\u306e\u914d\u4fe1\u3092\u5e0c\u671b\u3059\u308b<\/strong>\r\n<strong>                    &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;\/label&gt;<\/strong>\r\n<strong>                &lt;button type=\"submit\" class=\"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 w-full\"&gt;\u767b\u9332\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>            &lt;\/form&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;\/body&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u2757<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude04\u2728<\/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\u306f<code>LINE<\/code>\u3067\u53cb\u9054\u767b\u9332\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-12566\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_1.png\" alt=\"\" width=\"350\" height=\"379\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_1.png 350w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_1-277x300.png 277w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u767b\u9332\u5b8c\u4e86\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068<br \/>\n\u30e1\u30eb\u30de\u30ac\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u306eURL\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b \u3053\u3053\u306b<code>UUID<\/code>\u304c\u5165\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e<code>URL<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12568\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_3.png\" alt=\"\" width=\"489\" height=\"244\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_3.png 489w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_3-300x150.png 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12567\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_2.png\" alt=\"\" width=\"491\" height=\"245\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_2.png 491w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_2-300x150.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12569\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_4.png\" alt=\"\" width=\"269\" height=\"46\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u767b\u9332\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04<\/p>\n<p>\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u65b9\u304c\u3061\u3083\u3093\u3068\u540d\u5bc4\u305b\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12573\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_5.png\" alt=\"\" width=\"541\" height=\"273\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_5.png 541w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_5-300x151.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12571\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_6.png\" alt=\"\" width=\"539\" height=\"271\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_6.png 539w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_user_risk_hedge_6-300x151.png 300w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n<code>UUID<\/code>\u304c\u540c\u3058\u306a\u306e\u3067\u540d\u5bc4\u305b\u304c\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u5f8c\u306fUUID\u3092\u4f7f\u3063\u3066\u76f8\u4e92\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306d\ud83d\udc4d<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u96c6\u5ba2\uff06\u30bb\u30fc\u30eb\u30b9\u3092\u3059\u308b\u305f\u3081\u306b\u306f\u898b\u8fbc\u307f\u5ba2\u30ea\u30b9\u30c8\u306f\u3068\u3066\u3082\u91cd\u8981\u306a\u8cc7\u7523<br \/>\n\u3068\u3044\u3063\u3066\u3082\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3082\u3057\u305d\u308c\u3089\u304c\u4e00\u77ac\u306b\u3057\u3066\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u3068\u3057\u305f\u3089\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u3057\u304b\u3057\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u300c<strong>\u4fdd\u967a<\/strong>\u300d\u3092\u304b\u3051\u3066\u304a\u3051\u3070\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n<p>\u4eca\u306a\u3089<code>LINE<\/code>\u69cb\u7bc9\uff06\u30e1\u30eb\u30de\u30ac\u306b\u3088\u308b\u30ea\u30b9\u30af\u30d8\u30c3\u30b8\u306e\u3054\u76f8\u8ac7\u3092\u627f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>LINE\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u51cd\u7d50\u5bfe\u7b56<\/strong>\u300d\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3063\u3066\u96c6\u5ba2\u306f\u300c<strong>\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30d5\u30a1\u30cd\u30eb<\/strong>\u300d\u306e<br \/>\n\u4e00\u756a\u6700\u521d\u306e\u90e8\u5206\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\n\u3053\u3053\u306e\u6bcd\u6570\u304c\u591a\u3044\u307b\u3046\u304c\u3088\u308a\u6210\u7d04\u6570\u3082\u591a\u304f\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u898b\u8fbc\u307f\u5ba2\u304c\u591a\u3044\u3068\u3044\u3046\u3053\u3068\u306f<br \/>\n\u300c<strong>\u3088\u308a\u8cea\u306e\u9ad8\u3044\u9867\u5ba2<\/strong>\u300d\u3068\u5de1\u308a\u5408\u3046\u53ef\u80fd\u6027\u3082\u9ad8\u304f\u306a\u308b\u306e\u3067\u3001<br \/>\n\u30ea\u30b9\u30c8\u3092\u5b88\u3063\u3066\u304a\u304f\u306b\u8d8a\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u300c<strong>\u30ea\u30b9\u30c8\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3092\u5229\u7528\u3057\u305f<br \/>\n\u300c\u7a3c\u3050\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u3092\u4f5c\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-6068 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/>\u300c\u534a\u6570\u306f\u898b\u7d42\u308f\u308a\u307e\u3057\u305f\u304c\u3001<br \/>\nYouTube \u306e\u300e\u5f8c\u3067\u898b\u308b\u300f\u304c<br \/>\n150\u672c\u3092\u8d85\u3048\u3066\u307e\u3057\u305f\u3002\u77e5\u6075\u71b1\u51fa\u308b\u2026\ud83d\ude02\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u306fLINE\u306b\u95a2\u3059\u308b\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u8a71\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u3082\u540c\u3058\u304fLINE\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306e\u8a71\u3067\u3059\uff08\u7b11\uff09 LINE\u306f\u300c\u958b\u5c01\u7387\u304c\u9ad8\u3044\u300d\u300c\u5230\u9054\u7387\u3082\u9ad8 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12564\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel\uff1a LINE \u306e\u9867\u5ba2\u30ea\u30b9\u30c8\u3092\u5931\u308f\u306a\u3044\u30ea\u30b9\u30af\u30d8\u30c3\u30b8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12582,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,258],"tags":[164],"class_list":["post-12564","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-258","tag-line"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12564","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=12564"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12564\/revisions"}],"predecessor-version":[{"id":12707,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12564\/revisions\/12707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12582"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}