{"id":12525,"date":"2024-04-07T07:00:45","date_gmt":"2024-04-06T22:00:45","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12525"},"modified":"2024-03-15T20:13:36","modified_gmt":"2024-03-15T11:13:36","slug":"laravel-line-%e3%83%9e%e3%83%bc%e3%82%b1%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0%e3%81%a7%e3%80%8c%e3%83%91%e3%83%bc%e3%82%bd%e3%83%8a%e3%83%a9%e3%82%a4%e3%82%ba%e3%81%95%e3%82%8c%e3%81%9f%e3%83%aa","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12525","title":{"rendered":"Laravel + LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3067\u300c\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ea\u30b9\u30c8\u53d6\u308a\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u512a\u79c0\u306a\u4eba\u305f\u3061\u304b\u3089\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u5b66\u3093\u3067\u3044\u308b\u6700\u4e2d\u306a\u306e\u3067\u3059\u304c\u3001\u307e\u305f\uff11\u3064\u305d\u306e\u4e2d\u3067\u59cb\u3081\u3066\u805e\u304f\u8a00\u8449\u304c\u3042\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 \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u300c<strong>LINE\u3092\u4f7f\u3063\u3066\u30e2\u30ce\u3092\u58f2\u3063\u3066\u3044\u304f\u4f5c\u6226<\/strong>\u300d\u306a\u308f\u3051\u3067\u3059\u304c\u3001\u79c1\u304c\u5b9f\u969b\u306b\u4f53\u9a13\u3057\u305f\u3082\u306e\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7279\u5178\u3092\u3064\u3051\u308b<\/strong><\/p>\n<p>\u4f5c\u6226\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u6d41\u308c\u3067\u8a00\u3046\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u7279\u5178\u3092\u7528\u610f\u3057\u3066\u304a\u304d\u3001LINE \u3092\u304a\u53cb\u9054\u767b\u9332\u3057\u3066\u3082\u3089\u3046<\/li>\n<li>\u521d\u56de\u306e\u3042\u308a\u304c\u3068\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3001\u7279\u5178\u3078\u306e\u30ea\u30f3\u30af\u3092\u3064\u3051\u3066\u304a\u304f<\/li>\n<li>\uff08\u3053\u3053\u304c\u4e00\u756a\u91cd\u8981\u3067\u3059\u304c\uff09\u3082\u3057\u4f55\u304b\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u3089\u3001\u300c\u3069\u3093\u306a\u30bf\u30a4\u30d7\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u3057\u305f\u304b\u300d\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304f<\/li>\n<li>\u305d\u306e\u4eba\u306e\u597d\u307f\u304c\u5206\u304b\u308b\u306e\u3067\u300c\u3058\u3083\u3001\u3053\u308c\u3092\u30aa\u30b9\u30b9\u30e1\u3059\u308c\u3070\u58f2\u308c\u308b\u3093\u3058\u3083\u306d\u2753\u300d\u3063\u3066\u30ab\u30f3\u30b8\u3067\u3001\u305d\u306e\u5f8c\u306e\u30bb\u30fc\u30eb\u30b9\u306b\u5f79\u7acb\u3066\u308b<\/li>\n<\/ol>\n<p>\u3064\u307e\u308a\u3001\u7279\u5178\u3092\u3064\u3051\u305f\u3053\u3068\u3067\u300c<strong>\u512a\u826f\u306a\u30ea\u30b9\u30c8\u4f5c\u308a<\/strong>\u300d\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code> + <code>LINE Messaging API<\/code>\u3092\u4f7f\u3063\u3066\u3053\u306e\u300c<strong>LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u624b\u6cd5\u3092\u5b9f\u88c5\u3057\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-11002 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10.png\" alt=\"\" width=\"370\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10-300x235.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u8001\u306e\u773c\u304c<br \/>\n\u6765\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093<br \/>\n\u2026\u5e30\u3063\u3066\ud83d\ude4f\u2728\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u306f<code>LINE Messaging API<\/code>\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e<code>URL<\/code>\u3092\u53c2\u8003\u306b\u3057\u3066\u6e96\u5099\u3057\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=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>\u307e\u305f\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306e\u958b\u767a\u306f\u306a\u3093\u3067\u3082\u305d\u3046\u306a\u306e\u3067\u3059\u304c\u3001<code>ngrok<\/code>\u304c\u3042\u308b\u3068\u3081\u3061\u3083\u304f\u3061\u3083\u4fbf\u5229\u3067\u3059\uff08\u3068\u3044\u3046\u304b\u3053\u308c\u306a\u3057\u3067\u958b\u767a\u3063\u3066\u5730\u7344\u3067\u3059\ud83d\ude05\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u3053\u3061\u3089\u3082\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\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>\u3067\u306f\u3001\u4eca\u56de\u3082\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u307e\u305a\u5b9f\u969b\u306e\u4f5c\u696d\u306b\u884c\u304f\u524d\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\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<div>\n<pre><strong>composer require linecorp\/line-bot-sdk<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001<code>LINE Messaging API<\/code>\u306b\u95a2\u3059\u308b\u3044\u308d\u3044\u308d\u306a\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<h1>DB \u307e\u308f\u308a\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u30e2\u30c7\u30eb\u3084\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u4ee5\u4e0b\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>line_users\uff1a LINE \u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304f<\/li>\n<li>line_user_interests\uff1a LINE \u30e6\u30fc\u30b6\u30fc\u306e\u300c\u8208\u5473\u3084\u597d\u307f\u300d\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304f<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\uff12\u3064\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<\/strong>\r\n<strong>php artisan make:model LineUserInterest -m<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u5168\u90e8\u3067\uff14\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Models\/LineUser.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class LineUser extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    \/\/ Relationship<\/strong>\r\n<strong>    public function line_user_interests()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return $this-&gt;hasMany(LineUserInterest::class, 'line_user_id', 'id');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p><strong>app\/Models\/LineUserInterest.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class LineUserInterest extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    \/\/ Relationship<\/strong>\r\n<strong>    public function line_user()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return $this-&gt;belongsTo(LineUser::class, 'line_user_id', 'id');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p><strong>database\/migrations\/****_**_**_******_create_line_users_table.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Migrations\\Migration;<\/strong>\r\n<strong>use Illuminate\\Database\\Schema\\Blueprint;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Schema;<\/strong>\r\n\r\n<strong>return new class extends Migration<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Run the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function up(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::create('line_users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;string('uuid')-&gt;unique();<\/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<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Reverse the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function down(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::dropIfExists('line_users');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>};<\/strong><\/pre>\n<\/div>\n<p><strong>database\/migrations\/****_**_**_******_create_line_user_interests_table.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Migrations\\Migration;<\/strong>\r\n<strong>use Illuminate\\Database\\Schema\\Blueprint;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Schema;<\/strong>\r\n\r\n<strong>return new class extends Migration<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Run the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function up(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::create('line_user_interests', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;unsignedBigInteger('line_user_id')-&gt;comment('LINE\u30e6\u30fc\u30b6\u30fcID');<\/strong>\r\n<strong>            $table-&gt;string('interest')-&gt;comment('\u8208\u5473');<\/strong>\r\n<strong>            $table-&gt;timestamps();<\/strong>\r\n\r\n<strong>            $table-&gt;foreign('line_user_id')-&gt;references('id')-&gt;on('line_users');<\/strong>\r\n<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Reverse the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function down(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::dropIfExists('line_user_interests');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>};<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u521d\u671f\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\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 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-12526\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_1.png\" alt=\"\" width=\"419\" height=\"306\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_1.png 419w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_1-300x219.png 300w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12527\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_2.png\" alt=\"\" width=\"408\" height=\"263\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_2.png 408w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_2-300x193.png 300w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/p>\n<\/div>\n<\/div>\n<h1>Webhook \u90e8\u5206\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b<code>Webhook<\/code>\uff08<code>LINE<\/code>\u304b\u3089\u30c7\u30fc\u30bf\u9001\u4fe1\u3055\u308c\u3066\u304f\u308b\u90e8\u5206\uff09\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<div>\n<pre><strong>php artisan make:controller LineMarketingWebhookController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><strong>app\/Http\/Controllers\/LineMarketingWebhookController.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 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 = '\uff08\u3053\u3053\u306b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30c8\u30fc\u30af\u30f3\uff09';<\/strong>\r\n<strong>        $this-&gt;access_token = '\uff08\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\uff09';<\/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>                        $download_contents = [<\/strong>\r\n<strong>                            ['title' =&gt; '\u52d5\u753b\u7de8\u96c6\u306e\u57fa\u790e', 'url' =&gt; route('line_marketing.download', [1, $line_user-&gt;uuid])],<\/strong>\r\n<strong>                            ['title' =&gt; '\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580', 'url' =&gt; route('line_marketing.download', [2, $line_user-&gt;uuid])],<\/strong>\r\n<strong>                            ['title' =&gt; 'SNS \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306e\u3044\u308d\u306f', 'url' =&gt; route('line_marketing.download', [3, $line_user-&gt;uuid])],<\/strong>\r\n<strong>                        ];<\/strong>\r\n<strong>                        $text = view('line_marketing_webhook.reply_text', ['download_contents' =&gt; $download_contents])-&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>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u5148\u307b\u3069\u306e<code>LineMarketingWebhookController<\/code>\u306e\u4e2d\u3067\u4f7f\u3063\u305f\u30d3\u30e5\u30fc\uff08\u8fd4\u4fe1\u5185\u5bb9\u306e\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u3064\u304f\u3063\u3066\u3044\u304d\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_marketing_webhook.reply_text<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d3\u30e5\u30fc\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><strong>resources\/views\/line_marketing_webhook\/reply_text.blade.php<\/strong><\/p>\n<div>\n<pre><strong>\u304a\u53cb\u9054\u8ffd\u52a0\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01<\/strong>\r\n\r\n<strong>\u7279\u5178\u306f\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/strong>\r\n<strong>\u305c\u3072\u3054\u8208\u5473\u306e\u3042\u308b\u3082\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u306b\u3064\u306a\u3052\u3066\u304f\u3060\u3055\u3044\uff01<\/strong>\r\n\r\n<strong>\u3010\u304a\u53cb\u9054\u8ffd\u52a0\u3057\u305f\u4eba\u3060\u3051\u306e\u7279\u5178\u3011<\/strong>\r\n\r\n<strong>@foreach($download_contents as $download_content)<\/strong>\r\n<strong>\u25a0 {{ $download_content['title'] }}<\/strong>\r\n<strong>{{ $download_content['url'] }}<\/strong>\r\n\r\n<strong>@endforeach<\/strong><\/pre>\n<\/div>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u90e8\u5206\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u3082\u3046\u3072\u3068\u3064\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u300c<strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u90e8\u5206<\/strong>\u300d\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<div>\n<pre><strong>php artisan make:controller LineMarketingDownloadController<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/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\\LineUserInterest;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n\r\n<strong>class LineMarketingDownloadController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function download(int $download_id, 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)) {<\/strong>\r\n\r\n<strong>            abort(404);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        \/\/ \u672c\u6765\u306f\u53ef\u5909\u306b\u3059\u308b\u3079\u304d\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u7528\u306b\u56fa\u5b9a\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong>\r\n\r\n<strong>        $interests = [<\/strong>\r\n<strong>            1 =&gt; '\u52d5\u753b\u7de8\u96c6',<\/strong>\r\n<strong>            2 =&gt; '\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0',<\/strong>\r\n<strong>            3 =&gt; 'SNS \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0',<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>        $line_user_interest = new LineUserInterest; \/\/ \u4f55\u56de\u3082\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u3092\u8003\u616e\u3057\u3066\u3001\u5e38\u306b\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08\u305d\u308c\u3082\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3068\u3057\u3066\u4f7f\u3048\u308b\u30c7\u30fc\u30bf\u3067\u3059\uff09<\/strong>\r\n<strong>        $line_user_interest-&gt;line_user_id = $line_user-&gt;id;<\/strong>\r\n<strong>        $line_user_interest-&gt;interest = $interests[$download_id];<\/strong>\r\n<strong>        $line_user_interest-&gt;save();<\/strong>\r\n\r\n<strong>        return '\u5b9f\u969b\u306b\u306f\u3053\u3053\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\uff08'. $line_user_interest-&gt;interest .'\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f\uff09';<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>VerifyCsrfToken \u306e\u5236\u9650\u3092\u89e3\u9664\u3059\u308b<\/h1>\n<p><code>Laravel<\/code>\u306b\u306f\u30c7\u30fc\u30bf\u9001\u4fe1\u3092\u3059\u308b\u3068\u304d\u306b\u300c<strong>\u79fb\u52d5\u5143\u306e\u30da\u30fc\u30b8\u304c\u540c\u3058\u30b5\u30a4\u30c8\u5185\u304b\u3089\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1<\/strong>\u300d\u3068\u3044\u3046\u5236\u9650\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30a6\u30a7\u30d6\u30d5\u30c3\u30af\u306b\u3082\u3053\u308c\u304c\u9069\u7528\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001<code>VerifyCsrfToken.php<\/code>\u3067\u89e3\u9664\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p><strong>app\/Http\/Middleware\/VerifyCsrfToken.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Middleware;\r\n\r\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as Middleware;\r\n\r\nclass VerifyCsrfToken extends Middleware\r\n{\r\n    \/**\r\n     * The URIs that should be excluded from CSRF verification.\r\n     *\r\n     * @var array&lt;int, string&gt;\r\n     *\/\r\n    protected $except = [\r\n        <strong>'line_marketing\/webhook\/receive',<\/strong> \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n    ];\r\n}<\/pre>\n<\/div>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre><strong>use App\\Http\\Controllers\\LineMarketingWebhookController;<\/strong>\r\n<strong>use App\\Http\\Controllers\\LineMarketingDownloadController;<\/strong>\r\n\r\n<strong>Route::prefix('line_marketing')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::prefix('webhook')-&gt;controller(LineMarketingWebhookController::class)-&gt;group(function(){<\/strong>\r\n\r\n<strong>        Route::post('receive', 'receive')-&gt;name('line_marketing.receive');<\/strong>\r\n\r\n<strong>    });<\/strong>\r\n<strong>    Route::prefix('download')-&gt;controller(LineMarketingDownloadController::class)-&gt;group(function(){<\/strong>\r\n\r\n<strong>        Route::get('\/{download_id}\/{uuid}', 'download')-&gt;name('line_marketing.download');<\/strong>\r\n\r\n<strong>    });<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<\/div>\n<p>\u306f\u3044\uff01<br \/>\n\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002\ud83d\ude04<\/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\u3001<code>LINE<\/code>\u30dc\u30c3\u30c8\u306b\u304a\u53cb\u9054\u767b\u9332\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-12532\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_3.png\" alt=\"\" width=\"346\" height=\"502\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_3.png 346w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_3-207x300.png 207w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u304a\u53cb\u9054\u767b\u9332\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u81ea\u52d5\u3067\u9001\u4fe1\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f<code>LINE<\/code>\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12530\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_4.png\" alt=\"\" width=\"552\" height=\"271\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_4.png 552w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_4-300x147.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p>\u3067\u306f\u3001\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u7279\u5178\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<code>URL<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/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-12531\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_5.png\" alt=\"\" width=\"615\" height=\"44\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_5.png 615w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_5-300x21.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3061\u3083\u3093\u3068\u300c<strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/strong>\u300d\u304c\u4fdd\u5b58\u3055\u308c\u305f\u3053\u3068\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u300c\u52d5\u753b\u7de8\u96c6\u300d\u306e\u65b9\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<code>URL<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12533\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_6.png\" alt=\"\" width=\"580\" height=\"299\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_6.png 580w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_line_marketing_6-300x155.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u8208\u5473\u306e\u3042\u308b\u9805\u76ee\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u306e\u4eba\u306b\u306f\u300c<strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/strong>\u300d\u3084\u300c<strong>\u52d5\u753b\u7de8\u96c6<\/strong>\u300d\u95a2\u9023\u306e\u5546\u54c1\u3092\u30a2\u30d7\u30ed\u30fc\u30c1\u3059\u308c\u3070\u3001<strong>\u3088\u308a\u6210\u7d04\u306b\u7e4b\u304c\u308a\u3084\u3059\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u3001<code>LINE<\/code>\u3092\u3064\u304b\u3063\u305f\u300c<strong>\u3088\u308a CVR \u3092\u9ad8\u3081\u308b\u65bd\u7b56<\/strong>\u300d\u3092\u6253\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>LINE<\/code>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u5fb4\u304c\u3042\u308b\u305f\u3081\u3001\u3088\u308a\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306b\u306f\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3060\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u30019,600\u4e07\u4eba\uff082024.3.10 \u73fe\u5728\uff09<\/li>\n<li>\u958b\u5c01\u7387\u304c\u9ad8\u3044\uff08\u30e1\u30fc\u30eb\u306e\uff12\u500d\u307b\u3069\u3068\u3044\u3046\u30c7\u30fc\u30bf\u3082\u3042\u308b\u3088\u3046\u3067\u3059\uff09<\/li>\n<li>\u30af\u30ea\u30c3\u30af\u7387\u3082\u9ad8\u3044<\/li>\n<li>\u767b\u9332\u304c\u304b\u3093\u305f\u3093\uff08\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\uff09<\/li>\n<li>\u5230\u9054\u7387\u304c\u9ad8\u3044\uff08\u30e1\u30fc\u30eb\u306f\u8ff7\u60d1\u30e1\u30fc\u30eb\u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09<\/li>\n<\/ul>\n<p>\u3082\u3057\u5fa1\u793e\u304c<code>LINE<\/code>\u3092\u4f7f\u3063\u305f\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\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>Laravel \u3092\u4f7f\u3063\u3066 LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u306f\u3082\u3061\u308d\u3093\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u51fa\u8eab\u3067\u3059\u304c\u3001\u3053\u308c\u307e\u3067\u300c<strong>\u3053\u3046\u3044\u3046\u6a5f\u80fd\u3064\u304f\u3063\u3066<\/strong>\u300d\u3068\u8a00\u308f\u308c\u3066\u3082\u3001<strong>\u4f55\u306e\u305f\u3081\u306b\u3064\u304f\u308b\u306e\u304b\u3092\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u3044\u306a\u304b\u3063\u305f<\/strong>\u90e8\u5206\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\uff12\u500d\u306b\u3082\uff13\u500d\u306b\u3082\u30b9\u30ad\u30eb\u306e\u4fa1\u5024\u304c\u3042\u304c\u308b\u3053\u3068\u3092\u5b9f\u611f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u3060\u307e\u3060\u30b9\u30bf\u30fc\u30c8\u3057\u305f\u3070\u304b\u308a\u3067\u3059\u304c\u3001\u3053\u308c\u304b\u3089\u3082\u30d6\u30e9\u30c3\u30b7\u30e5\u30a2\u30c3\u30d7\u3057\u3066\u300c<strong>\u30a8\u30f3\u30b8\u30cb\u30a2 x \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3067\u5e02\u5834\u4fa1\u5024\u3092\u9ad8\u3081\u3066\u3044\u304f\u3064\u3082\u308a\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u300c<strong>\u30a8\u30f3\u30b8\u30cb\u30a2 x \u4f55\u304b<\/strong>\u300d\u3067\u81ea\u5206\u306e\u4fa1\u5024\u3092\u9ad8\u3081\u3066\u3044\u3063\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-9238 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4.png\" alt=\"\" width=\"318\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4.png 318w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-298x300.png 298w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-100x100.png 100w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/>\u300c\u3088\u3057\uff01<br \/>\n\u78ba\u5b9a\u7533\u544a\u304a\u308f\u3063\u305f\uff01\uff01<br \/>\n\u2026\u3044\u3084\u3001\u4eca\u5e74\u304b\u3089\u6d88\u8cbb\u7a0e\u3082\u3060\ud83d\ude2b \u30ae\u30e3\u30fc\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u512a\u79c0\u306a\u4eba\u305f\u3061\u304b\u3089\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u5b66\u3093\u3067\u3044\u308b\u6700\u4e2d\u306a\u306e\u3067\u3059\u304c\u3001\u307e\u305f\uff11\u3064\u305d\u306e\u4e2d\u3067\u59cb\u3081\u3066\u805e\u304f\u8a00\u8449\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12525\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3067\u300c\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ea\u30b9\u30c8\u53d6\u308a\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12537,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,258],"tags":[164],"class_list":["post-12525","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\/12525","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=12525"}],"version-history":[{"count":4,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12525\/revisions"}],"predecessor-version":[{"id":12536,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12525\/revisions\/12536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12537"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}