{"id":3998,"date":"2019-06-29T16:40:25","date_gmt":"2019-06-29T07:40:25","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=3998"},"modified":"2019-06-29T16:40:25","modified_gmt":"2019-06-29T07:40:25","slug":"%e6%84%8f%e5%a4%96%e3%81%a8%e7%b0%a1%e5%8d%98%ef%bc%81laravel-vue%e3%81%a7%e3%83%93%e3%83%87%e3%82%aa%e3%83%81%e3%83%a3%e3%83%83%e3%83%88%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%ef%bc%88","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=3998","title":{"rendered":"\u610f\u5916\u3068\u7c21\u5358\uff01Laravel + Vue\u3067\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u88c5\u3059\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u300c<a href=\"https:\/\/blog.capilano-fw.com\/?p=1418\">Laravel+Vue\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30c1\u30e3\u30c3\u30c8\u3092\u3064\u304f\u308b<\/a>\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u306e\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u73fe\u3059\u308b\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002\uff08\u5b9f\u306f\u3053\u306e\u8a18\u4e8b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u30d6\u30ed\u30b0\u5185\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u4eba\u6c17TOP\uff13\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\ud83d\ude0a\u2728\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3057\u305f\u306e\u304c <a href=\"https:\/\/pusher.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Pusher<\/a> \u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3067\u3001<code>Laravel<\/code>\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3082<code>Laravel Echo<\/code>\u3068<code>Pusher<\/code>\u3092\u9023\u643a\u3055\u305b\u308b\u4f8b\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001<code>Pusher<\/code>\u3067\u3067\u304d\u308b\u3053\u3068\u306f\uff08\u30c6\u30ad\u30b9\u30c8\u306e\uff09\u30c1\u30e3\u30c3\u30c8\u30b7\u30b9\u30c6\u30e0\u3060\u3051\u3067\u306a\u304f\u3001\u306a\u3093\u3068\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3082\u958b\u767a\u3059\u308b\u3053\u3068\u3060\u3063\u3066\u3067\u304d\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code> + <code>Vue<\/code>\u3067\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u30fb\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\uff01<br \/>\n\u6700\u5f8c\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1aLaravel 5.8\u3001Vue 2.6\u3001Google Chrome 75<\/p>\n<h1>\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u73fe\u3059\u308b\u4ed5\u7d44\u307f<\/h1>\n<p>\u4eca\u56de\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u9593\u3067\u76f4\u63a5\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a\u3092\u3059\u308b\u300cWebRTC\u300d\u3068\u3044\u3046\u6280\u8853\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>\u672c\u683c\u7684\u306b\u306f\u96e3\u3057\u3044\u306e\u3067\u3001WebRTC\u3092\u7c21\u5358\u306b\u8aac\u660e\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>PC\u9593\u306e\u901a\u4fe1\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u30b5\u30fc\u30d0\u30fc\u304c\u6e96\u5099\u3059\u308b\uff08\u7d39\u4ecb\u3059\u308b\u6bb5\u53d6\u308a\u3092\u6c7a\u3081\u308b\uff09<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3063\u3066\u901a\u4fe1\u3092\u78ba\u7acb\u3059\u308b\uff08\uff12\u4eba\u3092\u4f1a\u308f\u305b\u308b\uff09<\/li>\n<li>\u3042\u3068\u306f\u81ea\u5206\u305f\u3061\u3067\u30c7\u30fc\u30bf\u9001\u4fe1\u3059\u308b\uff08\u52dd\u624b\u306b\u30e1\u30fc\u30eb\u306e\u3084\u308a\u3068\u308a\u306a\u3069\u3092\u3059\u308b\uff09<\/li>\n<\/ol>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u524d\u63d0\u3068\u3057\u3066\u3001<code>php artisan make:auth<\/code>\u3067Laravel\u306e\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u3042\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002\u3082\u3057\u307e\u3060\u306e\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u6e96\u5099\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=289\">\u3010Laravel5.6\u3011\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\uff13\u70b9<\/a><\/p>\n<p>\u307e\u305f\u3001\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\uff12\u4eba\u4ee5\u4e0a\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u7528\u610f\u3057\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u3042\u308b\u300c\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b\u300d\u304c\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=3843\">\u610f\u5916\u3068\u7c21\u5358\uff01Laravel \u3067\u5168\u6587\u691c\u7d22\u3092\u3064\u304f\u308b\uff08Laravel Scout + Algolia\uff09<\/a><\/p>\n<p>\u307e\u305f\u3001<code>Google Chrome<\/code>\u306f\u30ab\u30e1\u30e9\u3084\u97f3\u58f0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306f\u5fc5\u305a<code>HTTPS<\/code>\u74b0\u5883\u3067\u3042\u308b\u3053\u3068\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u3082\u3057\u30ed\u30fc\u30ab\u30eb\u306b<code>HTTPS<\/code>\u3092\u5c0e\u5165\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=2228\">\u30b3\u30d4\u30da\u3067OK\uff01\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306bHTTPS\u3092\u5c0e\u5165\u3059\u308b\uff08nginx\u7de8\uff09<\/a><\/p>\n<h1>\u6e96\u5099\u3059\u308b<\/h1>\n<h2>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u306f<code>Pusher<\/code>\u3068 <a href=\"https:\/\/github.com\/feross\/simple-peer\" target=\"_blank\" rel=\"noopener noreferrer\">simple-peer<\/a> \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u306e\u3067\u3001\u306f\u3058\u3081\u306b\u3053\u308c\u3089\u306e\u63d0\u4f9b\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fJavaScript\u5074\u3067\u3059\u3002\uff08\u307e\u3060\u30d3\u30eb\u30c9\u3067\u304d\u308b\u74b0\u5883\u304c\u6574\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4e8b\u524d\u306b<code>npm install<\/code>\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p><code>Laravel<\/code>\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm install simple-peer --save-dev<\/strong>\r\n<strong>npm install pusher-js --save-dev<\/strong><\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089\u30d3\u30eb\u30c9JavaScript\u30b3\u30fc\u30c9\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><code>resources\/js\/bootstrap.js<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>window.Peer = require('simple-peer');<\/strong>\r\n<strong>window.Pusher = require('pusher-js');<\/strong><\/pre>\n<p>\u203b window.Pusher\u306f\u6700\u521d\u304b\u3089\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5916\u3057\u3066\u6709\u52b9\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306fVue\u306f\u72ec\u81ea\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308a\u307e\u3059\u306e\u3067\u3001<code>resources\/js\/app.js<\/code>\u5185\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\/\/ const app = new Vue({\r\n\/\/     el: '#app'\r\n\/\/ });<\/pre>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>npm run dev<\/strong>\r\n\r\n\/\/ \u3082\u3057\u304f\u306f\r\n<strong>npm run production<\/strong><\/pre>\n<p>\u5b8c\u4e86\u3057\u305f\u3089\u3001<code>\/js\/app.js<\/code>\u3068<code>\/css\/app.css<\/code>\u306b\u5168\u3066\u306e\u30b3\u30fc\u30c9\u304c\u307e\u3068\u307e\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u6700\u5f8c\u306b<code>composer<\/code>\u3067<code>Laravel<\/code>\u5074\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre><strong>composer require pusher\/pusher-php-server<\/strong><\/pre>\n<h2>Pusher\u306b\u767b\u9332\u3059\u308b<\/h2>\n<p>\u3082\u3061\u308d\u3093<code>Pusher<\/code>\u304c\u5229\u7528\u3067\u304d\u306a\u3044\u3068\u4eca\u56de\u306e\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u306f\u5b9f\u88c5\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u4eba\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u4f5c\u3063\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=1418#Pusher\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel+Vue\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30c1\u30e3\u30c3\u30c8\u3092\u3064\u304f\u308b\uff08Pusher\u306b\u767b\u9332\u3059\u308b\uff09<\/a><\/p>\n<p>\u767b\u9332\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u753b\u9762\u5de6\u5074\u306b\u3042\u308b<strong>\u300cCreate new app\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4002\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_2.png\" alt=\"\" width=\"99\" height=\"425\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_2.png 99w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_2-70x300.png 70w\" sizes=\"auto, (max-width: 99px) 100vw, 99px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u306e\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u6b21\u306e\u3088\u3046\u306b\u9069\u5f53\u306a\u60c5\u5831\u3067\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4003\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_3.png\" alt=\"\" width=\"733\" height=\"588\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_3.png 733w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_3-300x241.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>\u767b\u9332\u304c\u5b8c\u4e86\u3057\u305f\u3089Pusher\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5fc5\u8981\u306a\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<code>.env<\/code>\u306b\u305d\u308c\u305e\u308c\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4004\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_4.png\" alt=\"\" width=\"551\" height=\"332\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_4.png 551w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_4-300x181.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/p>\n<p>\uff08.env\u306e\u5185\u5bb9\uff09<\/p>\n<pre><strong>PUSHER_APP_ID=******<\/strong>\r\n<strong>PUSHER_APP_KEY=********************<\/strong>\r\n<strong>PUSHER_APP_SECRET=********************<\/strong>\r\n<strong>PUSHER_APP_CLUSTER=ap3<\/strong><\/pre>\n<p>\u3055\u3089\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u8a2d\u5b9a\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30a4\u30d9\u30f3\u30c8\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a<strong>\u300cApp Settings\u300d<\/strong>\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<strong>\u300cEnable client events\u300d<\/strong>\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066<strong>\u300cUpdate\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4005\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_5.png\" alt=\"\" width=\"903\" height=\"596\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_5.png 903w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_5-300x198.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_5-768x507.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3053\u308c\u3067<code>Pusher<\/code>\u306e\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h1>\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3059\u308b\u30da\u30fc\u30b8\u3092\u4f5c\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>Laravel<\/code>\u3067\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u307e\u305a\u306f<code>routes\/web.php<\/code>\u306b\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>Route::group(['middleware' =&gt; 'auth'], function(){\r\n\r\n    <strong>Route::get('video_chat', 'VideoChatController@index');      \/\/ \u30c1\u30e3\u30c3\u30c8\u30da\u30fc\u30b8<\/strong>\r\n<strong>    Route::post('auth\/video_chat', 'VideoChatController@auth'); \/\/ \u8a8d\u8a3c\u30da\u30fc\u30b8<\/strong>\r\n\r\n});<\/pre>\n<p>\u203b \u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001<strong>\u300cauth\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u300d<\/strong>\u3067\u30ed\u30b0\u30a4\u30f3\u304c\u5fc5\u9808\u306a\u30da\u30fc\u30b8\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u7d9a\u3044\u3066\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>VideoChatController<\/code>\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller VideoChatController<\/strong><\/pre>\n<p><code>app\\Http\/Controllers\/VideoChatController.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u306b\uff12\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse Pusher\\Pusher;\r\n\r\nclass VideoChatController extends Controller\r\n{\r\n    <strong>public function index(Request $request) {   \/\/ \u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u30da\u30fc\u30b8<\/strong>\r\n\r\n<strong>        $user = $request-&gt;user();<\/strong>\r\n<strong>        $others = \\App\\User::where('id', '!=', $user-&gt;id)-&gt;pluck('name', 'id');<\/strong>\r\n<strong>        return view('video_chat.index')-&gt;with([<\/strong>\r\n<strong>            'user' =&gt; collect($request-&gt;user()-&gt;only(['id', 'name'])),<\/strong>\r\n<strong>            'others' =&gt; $others<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function auth(Request $request) {    \/\/ Pusher\u306e\u8a8d\u8a3c<\/strong>\r\n\r\n<strong>        $user = $request-&gt;user();<\/strong>\r\n<strong>        $socket_id = $request-&gt;socket_id;<\/strong>\r\n<strong>        $channel_name = $request-&gt;channel_name;<\/strong>\r\n<strong>        $pusher = new Pusher(<\/strong>\r\n<strong>            config('broadcasting.connections.pusher.key'),<\/strong>\r\n<strong>            config('broadcasting.connections.pusher.secret'),<\/strong>\r\n<strong>            config('broadcasting.connections.pusher.app_id'),<\/strong>\r\n<strong>            [<\/strong>\r\n<strong>                'cluster' =&gt; config('broadcasting.connections.pusher.options.cluster'),<\/strong>\r\n<strong>                'encrypted' =&gt; true<\/strong>\r\n<strong>            ]<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>        return response(<\/strong>\r\n<strong>            $pusher-&gt;presence_auth($channel_name, $socket_id, $user-&gt;id)<\/strong>\r\n<strong>        );<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\uff11\u3064\u3081\u306e<code>index()<\/code>\u306f\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u30da\u30fc\u30b8\u306b\u306a\u308b\u306e\u3067\u3001\u6b21\u306e\u30c7\u30fc\u30bf\u3092\u30d3\u30e5\u30fc\u306b\u9001\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831<\/li>\n<li>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u4ee5\u5916\u306e\u30c7\u30fc\u30bf\uff08\u3053\u308c\u304b\u3089\u901a\u8a71\u3059\u308b\u4eba\u305f\u3061\uff09<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\uff12\u3064\u76ee\u306e<code>auth()<\/code>\u306f<code>Pusher<\/code>\u306e\u8a8d\u8a3c\u3092\u5b9f\u884c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u3053\u308c\u304b\u3089\u4f5c\u308b<code>JavaScript<\/code>\u304c\u9001\u4fe1\u3057\u3066\u304f\u308b\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u3067\u8a8d\u8a3c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>socket_id\u3000\u30fb\u30fb\u30fb\u3000\u63a5\u7d9aID<\/li>\n<li>channel_name\u3000\u30fb\u30fb\u30fb\u3000\u30c1\u30e3\u30f3\u30cd\u30eb\u540d<\/li>\n<\/ul>\n<h2>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6700\u5f8c\u306b<code>resources\/views\/video_chat\/index.blade.php<\/code>\u3092\u4f5c\u3063\u3066\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;meta name=\"csrf-token\" content=\"{{ csrf_token() }}\"&gt;\r\n    &lt;link href=\"{{ asset('css\/app.css') }}\" rel=\"stylesheet\"&gt;\r\n    &lt;style&gt;\r\n\r\n        video {\r\n            width: 100%\r\n        }\r\n\r\n    &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div id=\"app\" class=\"container\"&gt;\r\n        &lt;h1 class=\"text-center\"&gt;\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u306e\u30b5\u30f3\u30d7\u30eb&lt;\/h1&gt;\r\n        &lt;br&gt;\r\n        &lt;div class=\"row\"&gt;\r\n            &lt;div class=\"col-12\"&gt;\r\n                &lt;div class=\"card\" style=\"padding:15px;\"&gt;\r\n                    <strong>&lt;div v-for=\"(name,userId) in others\"&gt;<\/strong>\r\n<strong>                        &lt;a href=\"#\" @click.prevent=\"startVideoChat(userId)\"&gt;\u300c@{{ name }}\u300d\u3055\u3093\u3068\u901a\u8a71\u3092\u958b\u59cb\u3059\u308b&lt;\/a&gt;<\/strong>\r\n<strong>                    &lt;\/div&gt;<\/strong>\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;br&gt;\r\n        &lt;div class=\"row\"&gt;\r\n            &lt;div class=\"col-5\"&gt;\r\n                &lt;div class=\"text-center\"&gt;\u81ea\u5206\u306e\u6620\u50cf&lt;\/div&gt;\r\n                <strong>&lt;video ref=\"video-here\" autoplay&gt;&lt;\/video&gt;<\/strong>\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"col-2 text-center\"&gt;\r\n                \u21d4&lt;br&gt;\r\n                \u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"col-5\"&gt;\r\n                &lt;div class=\"text-center\"&gt;\u76f8\u624b\u306e\u6620\u50cf&lt;\/div&gt;\r\n                <strong>&lt;video ref=\"video-there\" autoplay&gt;&lt;\/video&gt;<\/strong>\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n\r\n        new Vue({\r\n            el: '#app',\r\n            data: {\r\n                pusher: {\r\n                    key: '{{ config('broadcasting.connections.pusher.key') }}',\r\n                    cluster: '{{ config('broadcasting.connections.pusher.options.cluster') }}'\r\n                },\r\n                user: {!! $user !!},\r\n                others: {!! $others !!},\r\n                channel: null,\r\n                stream: null,\r\n                peers: {}\r\n            },\r\n            methods: {\r\n                startVideoChat(userId) {\r\n\r\n                    this.getPeer(userId, true);\r\n\r\n                },\r\n                <strong>getPeer(userId, initiator) {<\/strong>\r\n\r\n<strong>                    if(this.peers[userId] === undefined) {<\/strong>\r\n\r\n<strong>                        let peer = new Peer({<\/strong>\r\n<strong>                            initiator,<\/strong>\r\n<strong>                            stream: this.stream,<\/strong>\r\n<strong>                            trickle: false<\/strong>\r\n<strong>                        });<\/strong>\r\n<strong>                        peer.on('signal', (data) =&gt; {<\/strong>\r\n\r\n<strong>                                this.channel.trigger('client-signal-'+ userId, {<\/strong>\r\n<strong>                                    userId: this.user.id,<\/strong>\r\n<strong>                                    data: data<\/strong>\r\n<strong>                                });<\/strong>\r\n\r\n<strong>                            })<\/strong>\r\n<strong>                            .on('stream', (stream) =&gt; {<\/strong>\r\n\r\n<strong>                                const videoThere = this.$refs['video-there'];<\/strong>\r\n<strong>                                videoThere.srcObject = stream;<\/strong>\r\n\r\n<strong>                            })<\/strong>\r\n<strong>                            .on('close', () =&gt; {<\/strong>\r\n\r\n<strong>                                const peer = this.peers[userId];<\/strong>\r\n\r\n<strong>                                if(peer !== undefined) {<\/strong>\r\n\r\n<strong>                                    peer.destroy();<\/strong>\r\n\r\n<strong>                                }<\/strong>\r\n\r\n<strong>                                delete this.peers[userId];<\/strong>\r\n<strong>                            });<\/strong>\r\n\r\n<strong>                        this.peers[userId] = peer;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                    return this.peers[userId];<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n<strong>            },<\/strong>\r\n            mounted() {\r\n\r\n                \/\/ \u30a8\u30e9\u30fc\u8868\u793a\u3067\u304d\u307e\u3059\u3002\r\n                \/\/ Pusher.logToConsole = true;\r\n\r\n                \/\/ \u30ab\u30e1\u30e9\u3001\u97f3\u58f0\u306b\u30a2\u30af\u30bb\u30b9\r\n                <strong>navigator.mediaDevices.getUserMedia({ video: true, audio: true })<\/strong>\r\n<strong>                    .then((stream) =&gt; {<\/strong>\r\n\r\n<strong>                        const videoHere = this.$refs['video-here'];<\/strong>\r\n<strong>                        videoHere.srcObject = stream;<\/strong>\r\n<strong>                        this.stream = stream;<\/strong>\r\n\r\n<strong>                        \/\/ Pusher \u306e\u6e96\u5099<\/strong>\r\n<strong>                        const pusher = new Pusher(this.pusher.key, {<\/strong>\r\n<strong>                            authEndpoint: '\/auth\/video_chat',<\/strong>\r\n<strong>                            cluster: this.pusher.cluster,<\/strong>\r\n<strong>                            auth: {<\/strong>\r\n<strong>                                headers: {<\/strong>\r\n<strong>                                    'X-CSRF-Token': document.head.querySelector('meta[name=\"csrf-token\"]').content<\/strong>\r\n<strong>                                }<\/strong>\r\n<strong>                            }<\/strong>\r\n<strong>                        });<\/strong>\r\n<strong>                        this.channel = pusher.subscribe('presence-video-chat');<\/strong>\r\n<strong>                        this.channel.bind('client-signal-'+ this.user.id, (signal) =&gt; {<\/strong>\r\n\r\n<strong>                            const userId = signal.userId;<\/strong>\r\n<strong>                            const peer = this.getPeer(userId, false);<\/strong>\r\n<strong>                            peer.signal(signal.data);<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n            }\r\n        });\r\n\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>HTML\u90e8\u5206<\/h3>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u306f\u81ea\u5206\u300c\u4ee5\u5916\u300d\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u3066\u3001\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u8a66\u307f\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;div v-for=\"(name,userId) in others\"&gt;<\/strong>\r\n<strong>    &lt;a href=\"#\" @click.prevent=\"startVideoChat(userId)\"&gt;\u300c@{{ name }}\u300d\u3055\u3093\u3068\u901a\u8a71\u3092\u958b\u59cb\u3059\u308b&lt;\/a&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong><\/pre>\n<p>\u307e\u305f\u3001\u305d\u306e\u4e0b\u3067\u306f<code>HTML5<\/code>\u306e<code>&lt;video&gt;&lt;\/video&gt;<\/code>\u30bf\u30b0\u3092\uff12\u3064\u4f5c\u308a\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>video-here\u3000\u30fb\u30fb\u30fb\u3000\u81ea\u5206\u306e\u6620\u50cf\u3092\u8868\u793a\u3059\u308b<code>video<\/code>\u30bf\u30b0<\/li>\n<li>video-there\u3000\u30fb\u30fb\u30fb\u3000\u76f8\u624b\u306e\u6620\u50cf\u3092\u8868\u793a\u3059\u308b<code>video<\/code>\u30bf\u30b0<\/li>\n<\/ul>\n<h3>\u30ab\u30e1\u30e9\u3001\u30de\u30a4\u30af\u3078\u306e\u30a2\u30af\u30bb\u30b9\u90e8\u5206<\/h3>\n<p><code>mounted()<\/code>\u306f\u30da\u30fc\u30b8\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3089\u3059\u3050\u306b\u5b9f\u884c\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u306a\u306e\u3067\u3001\u307e\u305a\u30ab\u30e1\u30e9\uff06\u30de\u30a4\u30af\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\uff08\u5b9f\u969b\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8a31\u53ef\u3092\u51fa\u3057\u305f\u3089\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<p>\u30ab\u30e1\u30e9\uff06\u30de\u30a4\u30af\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u304c\u53d6\u5f97\u3067\u304d\u305f\u3089\u3001<code>video-here<\/code>\u306e<code>video<\/code>\u30bf\u30b0\u3078\u6620\u50cf\uff06\u97f3\u58f0\u3092\u6d41\u3057\u307e\u3059\u3002<\/p>\n<h3>Pusher\u90e8\u5206<\/h3>\n<p>\u6b21\u306b<code>Pusher<\/code>\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<code>Pusher<\/code>\u306e\u8a2d\u5b9a\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>authEndpoint\u3000\u30fb\u30fb\u30fb\u3000\u5148\u307b\u3069\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u8a2d\u5b9a\u3057\u305f<code>auth()<\/code>\u306eURL<\/li>\n<li>this.pusher.key\u3001cluster\u3000\u30fb\u30fb\u30fb\u3000Pusher \u306e\u30a2\u30af\u30bb\u30b9\u30c7\u30fc\u30bf\u3002Vue\u306e &#8220;data&#8221; \u5185\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5143\u3005\u306f.env\u3092\u53c2\u7167\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/li>\n<li>headers\u3000\u30fb\u30fb\u30fb\u3000\u8a8d\u8a3c\u306fPost\u9001\u4fe1\u306b\u306a\u308b\u306e\u3067\u3001CSRF\u5bfe\u7b56\u3067\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3055\u308c\u306a\u3044\u3088\u3046\u306b &#8220;headers&#8221; \u306b\u30c8\u30fc\u30af\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001<code>Pusher<\/code>\u306e\u8a8d\u8a3c\u306b\u6210\u529f\u3057\u305f\u3089\u30b7\u30b0\u30ca\u30eb\u3092\u5b9f\u884c\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>simple-peer\u90e8\u5206<\/h3>\n<p><code>simple-peer<\/code>\u306f<code>getPeer()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u307e\u305a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\uff08\u81ea\u5206\u5074\u3068\u76f8\u624b\u5074\u306e\uff12\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u307e\u3059\uff09\u3001\u5f8c\u306f\u305d\u308c\u305e\u308c\u300c\u30b7\u30b0\u30ca\u30eb\u300d\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u300d\u300c\u9589\u3058\u308b\u300d\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002\uff08\u30b9\u30c8\u30ea\u30fc\u30e0\u306f\u76f8\u624b\u5074\u306e\u6620\u50cf\uff06\u97f3\u58f0\u306a\u306e\u3067\u3001<code>video-there<\/code>\u306e<code>video<\/code>\u30bf\u30b0\u306b\u30c7\u30fc\u30bf\u3092\u6d41\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<h3>\u3061\u306a\u307f\u306b<\/h3>\n<p>\u5143\u3005\u306f\u3001\u30d6\u30ed\u30c3\u30af\u3054\u3068\u306b\u8aac\u660e\u3057\u3088\u3046\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u306a\u306b\u305b\u7d50\u69cb\u8907\u96d1\u306a\u5185\u5bb9\u306a\u306e\u3067\u5206\u3051\u3066\u3057\u307e\u3046\u3068\u9006\u306b\u308f\u304b\u308a\u306b\u304f\u304f\u306a\u308b\u3068\u601d\u3044\u3001\u4e00\u6c17\u306b\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3082\u308f\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u3089\u30b4\u30e1\u30f3\u30ca\u30b5\u30a4\ud83d\ude05<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002\uff08\u307e\u3060\u901a\u8a71\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u81ea\u5206\u306e\u6620\u50cf\u3057\u304b\u5199\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u306b\u306f\u30b7\u30fc\u30eb\u3092\u8cbc\u3063\u3066\u308b\u306e\u3067\u7070\u8272\u3067\u3059\u304c\u3002\u3002\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4001\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_1.png\" alt=\"\" width=\"640\" height=\"374\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306bPC\u3068\u30b9\u30de\u30db\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u4e21\u8005\u3067\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u3068\u3057\u3066\u6614UFO\u30ad\u30e3\u30c3\u30c1\u30e3\u30fc\u3067\u3068\u3063\u305f\u300c\u307c\u306e\u307c\u306e\u300d\u306e\u30b7\u30de\u30ea\u30b9\u541b\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4009\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_7.png\" alt=\"\" width=\"640\" height=\"853\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_7.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_7-225x300.png 225w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u6e96\u5099\u3068\u3057\u3066\u306f\u3001\u307e\u305aPC\u3068\u30b9\u30de\u30db\u3069\u3061\u3089\u5074\u304b\u3089\u3082\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3069\u3061\u3089\u304b\u7247\u65b9\u304b\u3089\u540d\u524d\u306e\u66f8\u304b\u308c\u305f\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u901a\u8a71\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u2193\u2193<\/p>\n<p>&nbsp;<\/p>\n<p>\u2193\u2193<\/p>\n<p>&nbsp;<\/p>\n<p>\u2193\u2193<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4006\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_6.png\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_6.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_video_chat_6-300x169.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\uff01<br \/>\n\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3046\u307e\u304f2\u65b9\u5411\u304b\u3089\u306e\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<p>[\u53c2\u8003URL]:<br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=5pnsloZzYQM\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.youtube.com\/watch?v=5pnsloZzYQM<\/a><\/p>\n<h1>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084<code>Pusher<\/code>\u306e\u4f5c\u696d\u3001\u4e8b\u524d\u8a2d\u5b9a\u7b49\u306f\u3054\u81ea\u8eab\u3067\u884c\u3063\u3066\u3044\u305f\u3060\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u5168\u304f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u203b \u307e\u305f\u3001\u30c6\u30b9\u30c8\u306e\u3068\u304d\u306e\u97f3\u58f0\u306b\u306f\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u97f3\u91cf\u304cMAX\u306e\u72b6\u614b\u3067\u30cf\u30a6\u30ea\u30f3\u30b0\u304c\u304a\u3053\u3063\u3066\u6c17\u7d76\u3057\u305d\u3046\u306b\u306a\u308a\u307e\u3057\u305f\ud83d\udca6<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=4010&amp;tmstv=1777537123\" rel=\"nofollow\" id=\"download-link-4010\" data-redirect=\"false\" >\n\tLaravel + Vue\u3067\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8<\/a>\n\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\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u8fd1\u5e74\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u3067\u304d\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u3066\u3001\u4eca\u3084\u30b9\u30ab\u30a4\u30d7\u304c\u306a\u304f\u3066\u3082\u3053\u3093\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306a\u3093\u3066\u3001\u3061\u3087\u3063\u3068\u30c6\u30f3\u30b7\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u304a\u3001<code>WebRTC<\/code>\u306f\u30d6\u30e9\u30a6\u30b6\u9593\u3060\u3051\u3067\u306a\u304f\u30b9\u30de\u30db\u306e\u30a2\u30d7\u30ea\u3084\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3068\u3082\u901a\u4fe1\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u3088\u308a\u53ef\u80fd\u6027\u304c\u5927\u304d\u3044\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3068\u3044\u3063\u3066\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u3082\u305c\u3072\u53d6\u308a\u5165\u308c\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15.png\" alt=\"\" width=\"348\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15.png 348w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15-300x276.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15-30x28.png 30w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u300cLaravel+Vue\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30c1\u30e3\u30c3\u30c8\u3092\u3064\u304f\u308b\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u306e\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u73fe\u3059\u308b\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002\uff08\u5b9f\u306f\u3053\u306e\u8a18\u4e8b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u30d6 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=3998\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u610f\u5916\u3068\u7c21\u5358\uff01Laravel + Vue\u3067\u30d3\u30c7\u30aa\u30c1\u30e3\u30c3\u30c8\u3092\u5b9f\u88c5\u3059\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4023,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[156,91,157],"class_list":["post-3998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-webrtc","tag-91","tag-157"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3998","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=3998"}],"version-history":[{"count":12,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3998\/revisions"}],"predecessor-version":[{"id":4027,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3998\/revisions\/4027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4023"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}