{"id":9936,"date":"2022-02-07T07:00:37","date_gmt":"2022-02-06T22:00:37","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=9936"},"modified":"2022-01-04T02:23:25","modified_gmt":"2022-01-03T17:23:25","slug":"laravel-pusher-%e3%81%a7%e3%82%b9%e3%83%9e%e3%83%9b%e3%81%a7%e3%83%91%e3%82%bd%e3%82%b3%e3%83%b3%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%85%a5%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=9936","title":{"rendered":"Laravel + Pusher \u3067\u30b9\u30de\u30db\u3067\u30d1\u30bd\u30b3\u30f3\u306e\u6587\u5b57\u3092\u5165\u529b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u308c\u306f\u79c1\u306b\u9650\u3063\u305f\u8a71\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u300c<strong>\u904e\u53bb\u306b\u304a\u65ad\u308a\u3057\u305f\u6848\u4ef6<\/strong>\u300d\u3068\u3044\u3046\u306e\u306f\u3044\u3064\u307e\u3067\u7d4c\u3063\u3066\u3082\u899a\u3048\u3066\u3044\u305f\u308a\u3057\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u79c1\u306e\u5834\u5408\u3001\u7279\u306b\u300c<strong>\u6280\u8853\u529b\u304c\u306a\u304f\u3066\u304a\u65ad\u308a\u305b\u3056\u308b\u3092\u5f97\u306a\u304b\u3063\u305f<\/strong>\u300d\u958b\u767a\u3068\u3044\u3046\u3082\u306e\u306f\u305f\u307e\u306b\u300c\u3061\u3063\u304f\u3057\u3087\u3046\ud83d\ude23\u300d\u3068\u601d\u3044\u51fa\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5c11\u3057\u524d\u306b\u300c<strong>Z\u4e16\u4ee3\u306f\u30b9\u30de\u30db\u3060\u3051\u4f7f\u3044\u3001\u30d1\u30bd\u30b3\u30f3\u306f\u4f7f\u308f\u306a\u3044<\/strong>\u300d\u3068\u3044\u3046\u8a00\u8449\u3092\u805e\u3044\u305f\u6642\u306b\u3042\u308b\u300c\u3067\u304d\u306a\u304b\u3063\u305f\u958b\u767a\u300d\u306e\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30b9\u30de\u30db\u3092\u4f7f\u3063\u3066\u4eca\u898b\u3066\u3044\u308b\u30d1\u30bd\u30b3\u30f3\u753b\u9762\u306b\u5165\u529b\u3092\u3059\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u3001\u6700\u8fd1\u306e\u82e5\u3044\u4eba\u305f\u3061\u306f\u300c<strong>\u30ad\u30fc\u30dc\u30fc\u30c9\u3088\u308a\u30d5\u30ea\u30c3\u30af\u5165\u529b\u306e\u65b9\u304c\u65e9\u3044<\/strong>\u300d\u3068\u3044\u3046\u65b9\u3082\u591a\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u305d\u308c\u306b\u5bfe\u5fdc\u3057\u305f\u3044\u3068\u3044\u3046\u6848\u4ef6\u3060\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5f53\u6642\u306f\u304a\u65ad\u308a\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u306b\u306a\u3063\u3066\u8003\u3048\u3066\u307f\u308b\u3068<code>Pusher<\/code>\u306e\u3088\u3046\u306a\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u3092\u4f7f\u3046\u3068\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3001\u3068\u3044\u3046\u8003\u3048\u306b\u306a\u3063\u305f\u306e\u3067\u305c\u3072\u30ea\u30d9\u30f3\u30b8\u7684\u306b\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\u3061\u3087\u3063\u3068\u500b\u4eba\u7684\u306a\u7406\u7531\u304b\u3089\u3067\u3059\u304c\uff09\u305c\u3072\u4f55\u304b\u306e\u304a\u5f79\u306b\u7acb\u3061\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-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\u6d77\u5916\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082<br \/>\n\u53c2\u52a0\u3057\u3066\u307e\u3059\ud83d\udc4d\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>\u4eca\u56de\u306f<code>Pusher<\/code>\u3092\u5229\u7528\u3057\u305f\u300c<strong>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8<\/strong>\u300d\u306a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u77e5\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c<code>Laravel<\/code>\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u307e\u3060\u306e\u65b9\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3055\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=8301\" target=\"_blank\" rel=\"noopener\">Laravel Breeze\u3067\u300c\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n<p>\u307e\u305f\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u77e5\u306b<code>Pusher<\/code>\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066<code>Laravel<\/code>\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\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=1418#i-6\" target=\"_blank\" rel=\"noopener\">\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30c1\u30e3\u30c3\u30c8\u3092\u3064\u304f\u308b\uff1a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u66f4\u65b0\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/a><\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u4f5c\u696d\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>Pusher\u3078\u306e\u901a\u77e5\u30a4\u30d9\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u3001<code>Laravel<\/code>\u304b\u3089<code>Pusher<\/code>\u3078\u901a\u77e5\u3092\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u3001\u4ee5\u4e0b\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>PcFocused\uff1a \u30d1\u30bd\u30b3\u30f3\u5074\u3067\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3055\u308c\u305f\u3068\u304d\u3002\u3059\u3067\u306b\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u6587\u5b57\u3092\u30b9\u30de\u30db\u5074\u3078\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n<li>MobileEntered\uff1a \u30b9\u30de\u30db\u5074\u3067\u5165\u529b\u304c\u5b8c\u4e86\u3057\u305f\u3068\u304d\u3002 \u5165\u529b\u5185\u5bb9\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:event PcFocused<\/strong><\/pre>\n<pre><strong>php artisan make:event MobileEntered<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\uff12\u3064\u4f5c\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Events\/PcFocused.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Events;\r\n\r\n<strong>use App\\Models\\User;<\/strong>\r\nuse Illuminate\\Broadcasting\\Channel;\r\nuse Illuminate\\Broadcasting\\InteractsWithSockets;\r\nuse Illuminate\\Broadcasting\\PresenceChannel;\r\nuse Illuminate\\Broadcasting\\PrivateChannel;\r\nuse Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast;\r\nuse Illuminate\\Foundation\\Events\\Dispatchable;\r\nuse Illuminate\\Queue\\SerializesModels;\r\n\r\nclass PcFocused<strong> implements ShouldBroadcast<\/strong>\r\n{\r\n    use Dispatchable, InteractsWithSockets, SerializesModels;\r\n\r\n    <strong>private $user, $default_text;<\/strong>\r\n\r\n<strong>    public function __construct(User $user, $default_text = '')<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;user = $user;<\/strong>\r\n<strong>        $this-&gt;default_text = $default_text;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function broadcastOn()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $channel_name = 'mobile_input.'. $this-&gt;user-&gt;id; \/\/ \u30e6\u30fc\u30b6\u30fc\u5c02\u7528\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u540d<\/strong>\r\n\r\n<strong>        return new PrivateChannel($channel_name);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function broadcastWith()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [<\/strong>\r\n<strong>            'default_text' =&gt; $this-&gt;default_text \/\/ \u521d\u671f\u30c6\u30ad\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p><strong>app\/Events\/MobileEntered.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Events;\r\n\r\n<strong>use App\\Models\\User;<\/strong>\r\nuse Illuminate\\Broadcasting\\Channel;\r\nuse Illuminate\\Broadcasting\\InteractsWithSockets;\r\nuse Illuminate\\Broadcasting\\PresenceChannel;\r\nuse Illuminate\\Broadcasting\\PrivateChannel;\r\nuse Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast;\r\nuse Illuminate\\Foundation\\Events\\Dispatchable;\r\nuse Illuminate\\Queue\\SerializesModels;\r\n\r\nclass MobileEntered<strong> implements ShouldBroadcast<\/strong>\r\n{\r\n    use Dispatchable, InteractsWithSockets, SerializesModels;\r\n\r\n    <strong>private $user, $entered_text;<\/strong>\r\n\r\n<strong>    public function __construct(User $user, $entered_text = '')<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;user = $user;<\/strong>\r\n<strong>        $this-&gt;entered_text = $entered_text;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function broadcastOn()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $channel_name = 'mobile_input.'. $this-&gt;user-&gt;id; \/\/ \u30e6\u30fc\u30b6\u30fc\u5c02\u7528\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u540d<\/strong>\r\n\r\n<strong>        return new PrivateChannel($channel_name);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function broadcastWith()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [<\/strong>\r\n<strong>            'entered_text' =&gt; $this-&gt;entered_text,<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f\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 MobileInputController<\/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\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/MobileInputController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\n<strong>use App\\Events\\MobileEntered;<\/strong>\r\n<strong>use App\\Events\\PcFocused;<\/strong>\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass MobileInputController extends Controller\r\n{\r\n    <strong>private $user;<\/strong>\r\n\r\n<strong>    public function __construct()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;middleware(function($request, $next) {<\/strong>\r\n\r\n<strong>            $this-&gt;user = auth()-&gt;user();<\/strong>\r\n<strong>            return $next($request);<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/*  \u30d1\u30bd\u30b3\u30f3\u5074  *\/<\/strong>\r\n<strong>    public function pc_create()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('mobile_input.pc_create')-&gt;with([<\/strong>\r\n<strong>            'user' =&gt; $this-&gt;user<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function pc_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>        PcFocused::dispatch($this-&gt;user, $request-&gt;text);<\/strong>\r\n\r\n<strong>        return ['status' =&gt; 'success'];<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/*  \u30b9\u30de\u30db\u5074  *\/<\/strong>\r\n<strong>    public function mobile_create()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('mobile_input.mobile_create')-&gt;with([<\/strong>\r\n<strong>            'user' =&gt; $this-&gt;user<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function mobile_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>        MobileEntered::dispatch($this-&gt;user, $request-&gt;text);<\/strong>\r\n\r\n<strong>        return ['status' =&gt; 'success'];<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u306f\u30a4\u30d9\u30f3\u30c8\u3092\u8d77\u52d5\u3057\u3066\u3044\u308b\u90e8\u5206\u3067\u3059\u3002<br \/>\n\u5404\u30a4\u30d9\u30f3\u30c8\u306b\u306f\u305d\u308c\u305e\u308c<code>__construct()<\/code>\u3067\u5b9a\u7fa9\u3057\u305f\u300c\u30e6\u30fc\u30b6\u30fc\u300d\u3068\u300c\u30c6\u30ad\u30b9\u30c8\u300d\u3092\u5f15\u6570\u3068\u3057\u3066\u30bb\u30c3\u30c8\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>MobileInputController<\/code>\u306e\u4e2d\u306b\u3042\u308b<code>__construct()<\/code>\u3067\u306f\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5c11\u3057\u30c8\u30ea\u30c3\u30ad\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u76f4\u63a5<code>__construct()<\/code>\u5185\u3067<strong>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044<\/strong>\u305f\u3081\u3001\u4e00\u65e6<code>middleware()<\/code>\u3092\u306f\u3055\u3080\u5fc5\u8981\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u4eca\u56de\u306f\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3059\u308b\u305f\u3081\u30c1\u30e3\u30f3\u30cd\u30eb\u540d\u306b\u306f\u30e6\u30fc\u30b6\u30fcID\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u306a\u308a\u3059\u307e\u3057\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u3046\u3044\u3063\u305f\u3053\u3068\u3092\u9632\u6b62\u3057\u305f\u3044\u5834\u5408\u306f<code>UUID<\/code>\u3084\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3092\u4f7f\u3046\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5185\u3067\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\uff12\u3064\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/mobile_input\/pc_create.blade.php<\/strong><\/p>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;meta name=\"csrf-token\" content=\"{{ csrf_token() }}\"&gt;<\/strong>\r\n<strong>    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.1\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n<strong>&lt;body&gt;<\/strong>\r\n<strong>&lt;div id=\"app\" class=\"p-5\"&gt;<\/strong>\r\n<strong>    &lt;div class=\"h3\"&gt;\u30b9\u30de\u30db\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09&lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"row\"&gt;<\/strong>\r\n<strong>        &lt;div class=\"col-6 p-3\"&gt;<\/strong>\r\n<strong>            &lt;textarea class=\"form-control mobile-input\" rows=\"5\"&gt;\u30c6\u30ad\u30b9\u30c8 1&lt;\/textarea&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;div class=\"col-6 p-3\"&gt;<\/strong>\r\n<strong>            &lt;textarea class=\"form-control mobile-input\" rows=\"5\"&gt;\u30c6\u30ad\u30b9\u30c8 2&lt;\/textarea&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;div class=\"col-6 p-3\"&gt;<\/strong>\r\n<strong>            &lt;textarea class=\"form-control mobile-input\" rows=\"5\"&gt;\u30c6\u30ad\u30b9\u30c8 3&lt;\/textarea&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;div class=\"col-6 p-3\"&gt;<\/strong>\r\n<strong>            &lt;textarea class=\"form-control mobile-input\" rows=\"5\"&gt;\u30c6\u30ad\u30b9\u30c8 4&lt;\/textarea&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong>\r\n<strong>&lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.21.1\/axios.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script&gt;<\/strong>\r\n\r\n<strong>    window.onload = () =&gt; {<\/strong>\r\n\r\n<strong>        const elements = document.querySelectorAll('.mobile-input');<\/strong>\r\n<strong>        let focusingElement = null;<\/strong>\r\n\r\n<strong>        [].forEach.call(elements, element =&gt; {<\/strong>\r\n\r\n<strong>            element.addEventListener('focus', e =&gt; { \/\/ \u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                focusingElement = e.target; \/\/ \u5165\u529b\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3092\u30ad\u30fc\u30d7<\/strong>\r\n\r\n<strong>                const url = '{{ route('mobile_input.pc_store') }}';<\/strong>\r\n<strong>                const params = { 'text': e.target.value };<\/strong>\r\n\r\n<strong>                axios.post(url, params)<\/strong>\r\n<strong>                    .then(response =&gt; {<\/strong>\r\n\r\n<strong>                        if (response.data.status === 'success') {<\/strong>\r\n\r\n<strong>                            console.log('\u30b9\u30de\u30db\u5074\u3078\u9001\u4fe1\u3057\u307e\u3057\u305f');<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>            element.addEventListener('blur', () =&gt; { \/\/ \u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5916\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                focusingElement = null;<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>        Echo.private('mobile_input.{{ $user-&gt;id }}')<\/strong>\r\n<strong>            .listen('MobileEntered', e =&gt; {<\/strong>\r\n\r\n<strong>                if(focusingElement) {<\/strong>\r\n\r\n<strong>                    focusingElement.value = e.entered_text;<\/strong>\r\n\r\n<strong>                } else {<\/strong>\r\n\r\n<strong>                    console.error('\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3055\u308c\u3066\u3044\u307e\u305b\u3093');<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n\r\n<strong>&lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/body&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u304c\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre><strong>&lt;meta name=\"csrf-token\" content=\"{{ csrf_token() }}\"&gt;<\/strong><\/pre>\n<p>\u8a73\u3057\u3044\u7406\u7531\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u3092\u3054\u89a7\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=9881#_Pusher_csrf\" target=\"_blank\" rel=\"noopener\">Pusher \u7528\u8a8d\u8a3c\u7528\u306b csrf \u30c8\u30fc\u30af\u30f3\u3092\u30bb\u30c3\u30c8<\/a><\/p>\n<p><strong>resources\/views\/mobile_input\/mobile_create.blade.php<\/strong><\/p>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;meta name=\"csrf-token\" content=\"{{ csrf_token() }}\"&gt;<\/strong>\r\n<strong>    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.1\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n<strong>&lt;body&gt;<\/strong>\r\n<strong>&lt;div id=\"app\" class=\"p-5\"&gt;<\/strong>\r\n<strong>    &lt;div class=\"h3\"&gt;\u30b9\u30de\u30db\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\uff08\u30b9\u30de\u30db\u5074\uff09&lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"row\"&gt;<\/strong>\r\n<strong>        &lt;div class=\"col-12 p-3\"&gt;<\/strong>\r\n<strong>            &lt;textarea id=\"textarea\" class=\"form-control mobile-input\" rows=\"15\"&gt;&lt;\/textarea&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong>\r\n<strong>&lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.21.1\/axios.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script&gt;<\/strong>\r\n\r\n<strong>    window.onload = () =&gt; {<\/strong>\r\n\r\n<strong>        document.querySelector('#textarea')<\/strong>\r\n<strong>            .addEventListener('input', e =&gt; {<\/strong>\r\n\r\n<strong>                const text = e.target.value;<\/strong>\r\n<strong>                const url = '{{ route('mobile_input.mobile_store') }}';<\/strong>\r\n<strong>                const params = { text: text };<\/strong>\r\n\r\n<strong>                axios.post(url, params)<\/strong>\r\n<strong>                    .then(response =&gt; {<\/strong>\r\n\r\n<strong>                        if (response.data.status === 'success') {<\/strong>\r\n\r\n<strong>                            console.log('PC\u5074\u3078\u9001\u4fe1\u3057\u307e\u3057\u305f');<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>        Echo.private('mobile_input.{{ $user-&gt;id }}')<\/strong>\r\n<strong>            .listen('PcFocused', e =&gt; {<\/strong>\r\n\r\n<strong>                document.querySelector('#textarea').value = e.default_text;<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n\r\n<strong>&lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/body&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6700\u5f8c\u306b\u30eb\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<pre><strong>use App\\Http\\Controllers\\MobileInputController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('mobile_input')-&gt;middleware('auth')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('pc\/create', [MobileInputController::class, 'pc_create'])-&gt;name('mobile_input.pc_create');<\/strong>\r\n<strong>    Route::post('pc', [MobileInputController::class, 'pc_store'])-&gt;name('mobile_input.pc_store');<\/strong>\r\n<strong>    Route::get('mobile\/create', [MobileInputController::class, 'mobile_create'])-&gt;name('mobile_input.mobile_create');<\/strong>\r\n<strong>    Route::post('mobile', [MobileInputController::class, 'mobile_store'])-&gt;name('mobile_input.mobile_store');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u30ed\u30b0\u30a4\u30f3\u304c\u5fc5\u9808\u306a\u306e\u3067\u3001<code>middleware('auth')<\/code>\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u3002<\/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<br \/>\n\u307e\u305a\u306f\u3001\uff08\u30ed\u30b0\u30a4\u30f3\u3092\u6e08\u307e\u305b\u3066\u304b\u3089\uff09PC\uff06\u30b9\u30de\u30db\u7528\u306e\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9951\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_1.png\" alt=\"\" width=\"640\" height=\"322\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_1-300x151.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>\uff08\u30b9\u30de\u30db\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9947\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_2.png\" alt=\"\" width=\"640\" height=\"329\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_2-300x154.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30d1\u30bd\u30b3\u30f3\u5074\u306e\u300c<strong>\u30c6\u30ad\u30b9\u30c8\uff11<\/strong>\u300d\u3068\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u5f53\u3066\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9950\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_3.png\" alt=\"\" width=\"640\" height=\"281\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_3-300x132.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong>\uff08\u30b9\u30de\u30db\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9946\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_4.png\" alt=\"\" width=\"640\" height=\"329\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_4-300x154.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757\u300c<strong>\u30c6\u30ad\u30b9\u30c8\uff11<\/strong>\u300d\u304c\u30b9\u30de\u30db\u5074\u3078\u81ea\u52d5\u7684\u306b\u8ee2\u9001\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u521d\u671f\u30c6\u30ad\u30b9\u30c8\u306b\u4f55\u304b\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\uff08\u30b9\u30de\u30db\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9945\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_5.png\" alt=\"\" width=\"640\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_5-300x136.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30d1\u30bd\u30b3\u30f3\u5074\u3067\u306f\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\uff1f\uff1f<\/p>\n<p><strong>\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9949\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_6.png\" alt=\"\" width=\"640\" height=\"242\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_6.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_6-300x113.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p>\u4eca\u5ea6\u306f\u3001\u30d1\u30bd\u30b3\u30f3\u5074\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u81ea\u52d5\u7684\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002\uff08\u3061\u306a\u307f\u306b<code>IME<\/code>\u5909\u63db\u524d\u3067\u3082\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff09<\/p>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066\u30d1\u30bd\u30b3\u30f3\u5074\u306e\u300c<strong>\u30c6\u30ad\u30b9\u30c8\uff13<\/strong>\u300d\u3068\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9948\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_7.png\" alt=\"\" width=\"687\" height=\"182\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_7.png 687w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_7-300x79.png 300w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong>\uff08\u30b9\u30de\u30db\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9944\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_8.png\" alt=\"\" width=\"640\" height=\"274\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_8.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_8-300x128.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u5148\u307b\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u300c<strong>\u30c6\u30ad\u30b9\u30c8\uff13<\/strong>\u300d\u3068\u3044\u3046\u521d\u671f\u30c6\u30ad\u30b9\u30c8\u304c\u8ee2\u9001\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u3053\u3061\u3089\u3082\u4f55\u304b\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>\uff08\u30b9\u30de\u30db\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9943\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_9.png\" alt=\"\" width=\"640\" height=\"282\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_9.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_9-300x132.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3069\u3046\u306a\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\uff1f\uff1f<\/p>\n<p><strong>\uff08\u30d1\u30bd\u30b3\u30f3\u5074\uff09<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9942\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_10.png\" alt=\"\" width=\"640\" height=\"163\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_10.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/mobile_input_10-300x76.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p>\u3053\u3061\u3089\u3082\u540c\u69d8\u306b\u65b0\u3057\u3044\u30c6\u30ad\u30b9\u30c8\u3092\u30b9\u30de\u30db\u5074\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3092\u4f7f\u3046\u3068\u3001\u30ad\u30fc\u30bf\u30a4\u30d4\u30f3\u30b0\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u4eba\u3067\u3082\u30d1\u30bd\u30b3\u30f3\u753b\u9762\u3092\u898b\u306a\u304c\u3089\u30b9\u30de\u30db\u3067\u5165\u529b\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6c4e\u7528\u7684\u306b\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u305f\u6642\u70b9\u3067QR\u30b3\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3001\u3059\u3050\u30b9\u30de\u30db\u304b\u3089\u306e\u5165\u529b\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3001\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Pusher<\/code>\u3092\u4f7f\u3063\u3066\u30b9\u30de\u30db\u304b\u3089\u30d1\u30bd\u30b3\u30f3\u306e\u5165\u529b\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u4eca\u56de\u3084\u3063\u3066\u307f\u3066\u300c<strong>\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8<\/strong>\u300d\u3063\u3066\u901a\u77e5\u4ee5\u5916\u306b\u3082\u3044\u308d\u3093\u306a\u4f7f\u3044\u65b9\u304c\u3067\u304d\u308b\u3093\u3060\u306a\u3068\u5b9f\u611f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><code>Pusher<\/code>\u306f\u7121\u6599\u67a0\u3082\u5927\u304d\u3044\u3067\u3059\u3057\u3001\u4f7f\u3044\u65b9\u6b21\u7b2c\u3067\u306f\u3059\u3054\u304f\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3059\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\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-6067 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png\" alt=\"\" width=\"314\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png 314w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19-294x300.png 294w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/>\u300c\u7d50\u5c40\u3001\u304a\u6b63\u6708\u95a2\u4fc2\u306a\u304f<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u3057\u3066\u307e\u3057\u305f\u2026\ud83d\ude02\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u308c\u306f\u79c1\u306b\u9650\u3063\u305f\u8a71\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u300c\u904e\u53bb\u306b\u304a\u65ad\u308a\u3057\u305f\u6848\u4ef6\u300d\u3068\u3044\u3046\u306e\u306f\u3044\u3064\u307e\u3067\u7d4c\u3063\u3066\u3082\u899a\u3048\u3066\u3044\u305f\u308a\u3057\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u79c1\u306e\u5834\u5408\u3001\u7279\u306b\u300c\u6280\u8853\u529b\u304c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=9936\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + Pusher \u3067\u30b9\u30de\u30db\u3067\u30d1\u30bd\u30b3\u30f3\u306e\u6587\u5b57\u3092\u5165\u529b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":9954,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[229],"class_list":["post-9936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-pusher"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9936","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=9936"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9936\/revisions"}],"predecessor-version":[{"id":9953,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9936\/revisions\/9953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/9954"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}