{"id":4407,"date":"2019-08-09T17:29:40","date_gmt":"2019-08-09T08:29:40","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4407"},"modified":"2019-08-09T17:29:40","modified_gmt":"2019-08-09T08:29:40","slug":"%e3%80%90laravel-javascript%e3%80%91%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%a7%e7%9b%a3%e8%a6%96%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b%ef%bc%88%e7%94%bb%e5%83%8f%e4%bf%9d","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4407","title":{"rendered":"\u3010Laravel + JavaScript\u3011\u30d6\u30e9\u30a6\u30b6\u3067\u76e3\u8996\u30ab\u30e1\u30e9\u3092\u3064\u304f\u308b\uff08\u753b\u50cf\u4fdd\u5b58\u6a5f\u80fd\u4ed8\u304d\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593<a href=\"https:\/\/blog.capilano-fw.com\/?p=3969\">QR\u30b3\u30fc\u30c9\u3067\u81ea\u52d5\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a>\u3068\u3044\u3046\u3088\u3046\u306a\u300cPC\u3068\u30ea\u30a2\u30eb\u306e\u878d\u5408\u300d\u3092\u30c6\u30fc\u30de\u306b\u3057\u305f\u8a18\u4e8b\u3092\u3044\u304f\u3064\u304b\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u8a18\u4e8b\u306e\u4e2d\u3067\u306f\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3092\u4f7f\u3063\u305f\u3082\u306e\u304c\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f\u305d\u308c\u306b\u3068\u3082\u306a\u3063\u3066\u306e\u885d\u52d5\u8cb7\u3044\u3067\u300c\u3061\u3087\u3063\u3068\u3060\u3051\u89e3\u50cf\u5ea6\u304c\u3044\u3044USB\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u300d\u3082\u8cfc\u5165\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u4eca\u66f4\u306a\u304c\u3089\u3067\u3059\u304c<code>Raspberry Pi<\/code>\u3068\u305d\u306e\u30ab\u30e1\u30e9\u3092\u4f7f\u3063\u3066\u30e2\u30fc\u30b7\u30e7\u30f3\u30fb\u30c7\u30a3\u30c6\u30af\u30b7\u30e7\u30f3\uff08\u3064\u307e\u308a\u3001\u76e3\u8996\u30ab\u30e1\u30e9\uff09\u3092\u4f5c\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002\uff08\u5c06\u6765\u7684\u306b\u306f\u8fb2\u696d\u7528\u306b\u4f55\u304b\u5f79\u7acb\u305f\u306a\u3044\u304b\u306a\u3001\u306a\u3093\u3066\u52dd\u624b\u306b\u8003\u3048\u3066\u307e\u3057\u305f\uff09<\/p>\n<p>\u305f\u3060\u3001\u516c\u958b\u6e08\u307f\u306e\u8a18\u4e8b\u306e\u3053\u3068\u3092\u8003\u3048\u308b\u3068\u3001\u3042\u308b\u30a2\u30a4\u30c7\u30a2\u304c\uff11\u3064\u982d\u306b\u6d6e\u304b\u3093\u3067\u304d\u305f\u3093\u3067\u3059\u3002<\/p>\n<p><strong style=\"font-size: 35px;\">\u300c\u3053\u308c\u3001\u30d6\u30e9\u30a6\u30b6\u3060\u3051\u3067\u3044\u3051\u308b\u3093\u3058\u3083\u306a\u3044\uff01\uff1f\u300d<\/strong><\/p>\n<p>\u3068\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u601d\u3063\u3066\u3044\u308b\u4ee5\u4e0a\u306b\u30d6\u30e9\u30a6\u30b6\u3060\u3051\u3067\u3082\u8272\u3005\u306a\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3063\u305f\u3093\u3067\u3001\u4e00\u5ea6\u3084\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u3044\u3046\u6c17\u5206\u306b\u306a\u3063\u305f\u3093\u3067\u3059\u306d\u3002\u3057\u304b\u3082\u3001\u30d6\u30e9\u30a6\u30b6\u3060\u3051\u3067\u5b9f\u884c\u3067\u304d\u308b\u3068\u3044\u3046\u306f\u300cOS\u306f\u3069\u308c\u3067\u3082OK\uff01\u300d\u3068\u3044\u3046\u306a\u308a\u3001\u3088\u308a\u6c4e\u7528\u7684\u306b\u4f7f\u3048\u308b\u306e\u306f\u3068\u3066\u3082\u9b45\u529b\u7684\u3067\u3059\u3002\uff08\u305f\u3060\u3001\u305d\u306e\u305b\u3044\u3067<code>Raspberry Pi<\/code>\u30bb\u30c3\u30c8\u306f\u3057\u3070\u3089\u304f\u5bdd\u304b\u305b\u308b\u3053\u3068\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u304c\u30fb\u30fb\u30fb\ud83d\ude05\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3092\u8d77\u52d5\u3057\u3066\u52d5\u304d\u3092\u691c\u51fa\u3002\u3055\u3089\u306b\u52d5\u304d\u304c\u3042\u3063\u305f\u3089\u305d\u306e\u753b\u50cf\u3092Ajax\u9001\u4fe1\u3057\u3066\u4fdd\u5b58\u3059\u308b\u307e\u3067\u3092\u3084\u3063\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\ud83d\ude0a\u2728<\/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\uff1a Laravel 5.8\u3001Vue 2.6\u3001Google Chrome 76<\/p>\n<h1>\u4e8b\u524d\u306e\u6ce8\u610f<\/h1>\n<p><code>Google Chrome<\/code>\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u3042\u3063\u3066\u3082\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001<code>HTTPS<\/code>\u63a5\u7d9a\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u30ed\u30fc\u30ab\u30eb\u306b<code>HTTPS<\/code>\u3092\u5c0e\u5165\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\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>Laravel\u5074\u306e\u4f5c\u696d<\/h1>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u306f\u3058\u3081\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\uff08\u30eb\u30fc\u30c8\uff09\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>routes\/web.php<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\uff12\u3064\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>Route::get('motion_detection\/show', 'MotionDetectionController@show');<\/strong>\r\n<strong>Route::post('motion_detection\/save_image', 'MotionDetectionController@save_image');<\/strong><\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u7d9a\u3044\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller MotionDetectionController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Http\/Controllers\/MotionDetectionController.php<\/code>\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<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass MotionDetectionController extends Controller\r\n{\r\n    <strong>public function show() {<\/strong>\r\n\r\n<strong>        return view('motion_detection.show');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function save_image(Request $request) {<\/strong>\r\n\r\n<strong>        $result = false;<\/strong>\r\n\r\n<strong>        if($request-&gt;hasFile('image')) {<\/strong>\r\n\r\n<strong>            $request-&gt;file('image')-&gt;store('motion_detection'); \/\/ storage\/app\/motion_detection\u306b\u4fdd\u5b58<\/strong>\r\n<strong>            $result = true;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return ['result' =&gt; $result];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p><code>save_image()<\/code>\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u304c\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u3089\u3001<code>storage\/app\/motion_detection<\/code>\u306b\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6700\u5f8c\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3059\u308b\u30d3\u30e5\u30fc<code>resources\/views\/motion_detection\/show.blade.php<\/code>\u3092\u4f5c\u6210\u3057\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;body&gt;\r\n    &lt;div id=\"app\"&gt;\r\n        &lt;h1&gt;JavaScript\u3067\u52d5\u304d\u3092\u691c\u77e5\u3057\u3066\u753b\u50cf\u4fdd\u5b58&lt;\/h1&gt;\r\n        <strong>&lt;video ref=\"video\" width=\"640\" height=\"480\"&gt;&lt;\/video&gt;<\/strong>\r\n    &lt;\/div&gt;\r\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.6.10\/dist\/vue.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.19.0\/axios.min.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                canvas: null,\r\n                imageData: null,\r\n                detecting: false,\r\n                differenceThreshold: 10 \/\/ \u3069\u308c\u3060\u3051\u9055\u3044\u304c\u3042\u308c\u3070\u52d5\u3044\u305f\u3068\u5224\u65ad\u3059\u308b\u304b\uff08RGB\uff09\r\n            },\r\n            computed: {\r\n                video() {\r\n\r\n                    return this.$refs['video'];\r\n\r\n                },\r\n                context() {\r\n\r\n                    return this.canvas.getContext('2d');\r\n\r\n                }\r\n            },\r\n            methods: {\r\n                detectMotion() {\r\n\r\n                    setInterval(() =&gt; {\r\n\r\n                        if(!this.detecting) {\r\n\r\n                            this.detecting = true;\r\n                            const prevImageData = this.imageData;\r\n                            const video = this.video;\r\n                            this.context.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);\r\n                            this.imageData = this.context.getImageData(0, 0, video.videoWidth, video.videoHeight);\r\n\r\n                            if(<strong>this.hasDifference(prevImageData, this.imageData)<\/strong>) { \/\/ 2\u679a\u306e\u753b\u50cf\u306b\u9055\u3044\u304c\u3042\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\r\n\r\n                                \/\/ \u753b\u50cf\u3092\u9001\u4fe1\r\n                                <strong>this.canvas.toBlob((blob) =&gt; {<\/strong>\r\n\r\n<strong>                                    const url = '\/motion_detection\/save_image';<\/strong>\r\n<strong>                                    let formData = new FormData();<\/strong>\r\n<strong>                                    formData.append('image', blob);<\/strong>\r\n\r\n<strong>                                    axios.post(url, formData)<\/strong>\r\n<strong>                                        .then((response) =&gt; {<\/strong>\r\n\r\n<strong>                                            if(response.data.result) {<\/strong>\r\n\r\n<strong>                                                console.log('\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f');<\/strong>\r\n\r\n<strong>                                            }<\/strong>\r\n\r\n<strong>                                        })<\/strong>\r\n<strong>                                        .catch((error) =&gt; {<\/strong>\r\n\r\n<strong>                                            \/\/ \u30a8\u30e9\u30fc\u51e6\u7406<\/strong>\r\n\r\n<strong>                                        })<\/strong>\r\n<strong>                                        .then(() =&gt; {<\/strong>\r\n\r\n<strong>                                            this.detecting = false;<\/strong>\r\n\r\n<strong>                                        });<\/strong>\r\n\r\n<strong>                                });<\/strong>\r\n\r\n                            } else {\r\n\r\n                                this.detecting = false;\r\n\r\n                            }\r\n\r\n                        }\r\n\r\n                    }, 500);\r\n\r\n                },\r\n                <strong>hasDifference(prevImageData, currentImageData) {<\/strong>\r\n\r\n<strong>                    if(prevImageData === null) {<\/strong>\r\n\r\n<strong>                        return false;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                    for(let i = 0; i &lt; currentImageData.data.length; i += 4) {  \/\/ \u753b\u50cf\u3092\u30d4\u30af\u30bb\u30eb\u5358\u4f4d\u3067\u6bd4\u8f03<\/strong>\r\n\r\n<strong>                        let prevRGB = {<\/strong>\r\n<strong>                            red: prevImageData.data[i] \/ 3,<\/strong>\r\n<strong>                            green: prevImageData.data[i + 1] \/ 3,<\/strong>\r\n<strong>                            blue: prevImageData.data[i + 2] \/ 3,<\/strong>\r\n<strong>                        };<\/strong>\r\n<strong>                        let currentRGB = {<\/strong>\r\n<strong>                            red: currentImageData.data[i] \/ 3,<\/strong>\r\n<strong>                            green: currentImageData.data[i + 1] \/ 3,<\/strong>\r\n<strong>                            blue: currentImageData.data[i + 2] \/ 3,<\/strong>\r\n<strong>                        };<\/strong>\r\n\r\n<strong>                        let differences = {<\/strong>\r\n<strong>                            red: Math.abs(prevRGB.red - currentRGB.red),<\/strong>\r\n<strong>                            green: Math.abs(prevRGB.green - currentRGB.green),<\/strong>\r\n<strong>                            blue: Math.abs(prevRGB.blue - currentRGB.blue),<\/strong>\r\n<strong>                        };<\/strong>\r\n\r\n<strong>                        for(let key in differences) {<\/strong>\r\n\r\n<strong>                            if(differences[key] &gt; this.differenceThreshold) {<\/strong>\r\n\r\n<strong>                                return true;<\/strong>\r\n\r\n<strong>                            }<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                        return false;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n            },\r\n            mounted() {\r\n\r\n                \/\/ \u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3078\u30a2\u30af\u30bb\u30b9\r\n                <strong>navigator.mediaDevices.getUserMedia({ video: true })<\/strong>\r\n<strong>                    .then((stream) =&gt; {<\/strong>\r\n\r\n<strong>                        this.video.srcObject = stream;<\/strong>\r\n<strong>                        this.video.play();<\/strong>\r\n\r\n<strong>                        this.canvas = document.createElement('canvas');<\/strong>\r\n<strong>                        this.canvas.width = this.video.width;<\/strong>\r\n<strong>                        this.canvas.height = this.video.height;<\/strong>\r\n<strong>                        this.detectMotion();<\/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>\u3053\u306e\u4e2d\u3067\u4e00\u756a\u91cd\u8981\u306a\u306e\u306f\u3001<code>hasDifference()<\/code>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u300c\u4eca\u56de\u53d6\u5f97\u3057\u305f\u753b\u50cf\u3068\u524d\u56de\u306e\u753b\u50cf\u306b\u9055\u3044\u304c\u3042\u308b\u304b\uff1f\uff1f\u300d\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u540c\u3058\u4f4d\u7f6e\u306b\u3042\u308b\u8272\uff08RGB\uff09\u306e\u9055\u3044\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u57fa\u6e96\u3068\u306a\u308b\u5024\uff08\u3057\u304d\u3061\u5024\uff09\u304c<code>differenceThreshold<\/code>\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u306e\u7cbe\u5ea6\u306b\u3088\u3063\u3066\u3053\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4eca\u56de\u30c6\u30b9\u30c8\u306b\u4f7f\u3046\u306e\u306f\u3001\u6700\u8fd1\u7279\u306b\u30cf\u30de\u3063\u3066\u3044\u308b\u30af\u30e9\u30d5\u30c8\u30d3\u30fc\u30eb\u300c\u30a4\u30f3\u30c9\u306e\u9752\u9b3c\u300d\uff08\u306e\u3001\u3059\u3067\u306b\u30a4\u30ab\u3068\u4e00\u7dd2\u306b\u98f2\u3093\u3067\u3057\u307e\u3063\u3066\u7a7a\u306b\u306a\u3063\u305f\u7f36\ud83d\ude0a\uff09\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4409\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/IMG_20190809_001412.jpg\" alt=\"\" width=\"2448\" height=\"3264\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/IMG_20190809_001412.jpg 750w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/IMG_20190809_001412-225x300.jpg 225w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/IMG_20190809_001412-768x1024.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3053\u306e\u7f36\u3092\u624b\u3067\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u306b\u30d5\u30ec\u30fc\u30e0\u30a4\u30f3\u3057\u305f\u308a\u3001\u9006\u306b\u30d5\u30ec\u30fc\u30e0\u30a2\u30a6\u30c8\u3055\u305b\u3066\u4fdd\u5b58\u3055\u308c\u305f\u753b\u50cf\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30d5\u30ec\u30fc\u30e0\u30a4\u30f3\u3057\u305f\u3068\u304d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4413\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/qfG2vrcNiHraD4wOPZ1hgLAfNHpnt8tODT8L0PsI.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/qfG2vrcNiHraD4wOPZ1hgLAfNHpnt8tODT8L0PsI.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/qfG2vrcNiHraD4wOPZ1hgLAfNHpnt8tODT8L0PsI-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u6b21\u306b\u30d5\u30ec\u30fc\u30e0\u30a2\u30a6\u30c8\u3057\u305f\u3068\u304d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4412\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/7WD4KOzK5TdSqbJesza0wj0UWdk5YnZqeocZJi8N.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/7WD4KOzK5TdSqbJesza0wj0UWdk5YnZqeocZJi8N.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/7WD4KOzK5TdSqbJesza0wj0UWdk5YnZqeocZJi8N-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u30d5\u30ec\u30fc\u30e0\u30a4\u30f3\u5f8c\u306b\u7f36\u3092\u96e2\u3057\u305f\u5834\u5408\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4410\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/QgNRx8o6Brjugmt1KGUjRCA7G0oG1xjSECsm2KGB.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/QgNRx8o6Brjugmt1KGUjRCA7G0oG1xjSECsm2KGB.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/QgNRx8o6Brjugmt1KGUjRCA7G0oG1xjSECsm2KGB-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u6700\u5f8c\u306b\u518d\u5ea6\u8fd1\u3065\u3051\u305f\u5834\u5408\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4411\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/NEsfK1LVd5aX6jqBhoPvETVZT2psvRd8ND082PtJ.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/NEsfK1LVd5aX6jqBhoPvETVZT2psvRd8ND082PtJ.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/NEsfK1LVd5aX6jqBhoPvETVZT2psvRd8ND082PtJ-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001100\uff05\u5b8c\u74a7\u3067\u306f\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3057\u305f\u304c\u3060\u3044\u305f\u3044\u4f55\u304b\u52d5\u304d\u304c\u3042\u308c\u3070\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5c11\u3057\u3060\u3051\u9000\u5ba4\u3059\u308b\u3053\u3068\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u307f\u305f\u3089\u4f55\u3082\u5909\u5316\u304c\u306a\u3044\u306f\u305a\u3067\u3059\u304c\u6570\u70b9\u753b\u50cf\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u308c\u306f\u8aa4\u4f5c\u52d5\u3068\u3044\u3046\u3088\u308a\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u304c\u81ea\u52d5\u7684\u306b\u660e\u308b\u3055\u3092\u8abf\u6574\u3057\u305f\u7d50\u679c\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u3042\u305f\u308a\u306f\u8a08\u7b97\u5f0f\u3092\u3082\u3063\u3068\u8907\u96d1\u306b\u3057\u3066\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b\u304b\u3001\u3082\u3057\u304f\u306f\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u3092\u4f7f\u3063\u3066\u691c\u51fa\u3092\u3059\u3079\u304d\u3067\u3059\u304c\u3001\u306a\u306b\u306f\u3068\u3082\u3042\u308c\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u306e\u30e2\u30fc\u30b7\u30e7\u30f3\u30fb\u30c7\u30a3\u30c6\u30af\u30b7\u30e7\u30f3\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u306e\u3067\u4eca\u56de\u306f\u30e8\u30b7\u3068\u3057\u307e\u3059\uff01<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u76e3\u8996\u30ab\u30e1\u30e9\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u9014\u4e2d\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u3066\u3001\u5f8c\u304b\u3089\u4fdd\u5b58\u3055\u308c\u305f\u81ea\u5206\u306e\u59ff\u3092\u307f\u308b\u3068\u3001\u307e\u308c\u306b\u300c\u5947\u8de1\u306e\uff11\u679a\u300d\u304c\u898b\u3064\u304b\u3063\u305f\u3068\u601d\u3044\u304d\u3084\u307b\u307c\u5168\u7de8\u3067\u300c\u3044\u3084\u3044\u3084\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u30ab\u30e1\u30e9\u3092\u610f\u8b58\u3057\u305f\u9854\u3057\u308d\u3088\uff01\u300d\u3068\u8a00\u3044\u305f\u304f\u306a\u308b\u753b\u50cf\u3070\u304b\u308a\u3067\u3001\u81ea\u5206\u306e\u3053\u3068\u306a\u304c\u3089\u5c11\u3057\u6c17\u6065\u305a\u304b\u3057\u3044\u6c17\u5206\u306b\u306a\u308a\u307e\u3057\u305f\uff08\u7b11\uff09<\/p>\n<p>\u3067\u3082\u3001\u81ea\u5206\u306e\u3053\u3068\u3092\u5ba2\u89b3\u7684\u306b\u898b\u308b\u3044\u3044\u6a5f\u4f1a\u306b\u306a\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u5ea6\u304b\u3089\u306f\u3001\u5e38\u306bPC\u306e\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3092\u610f\u8b58\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u304f\u308b\u30fb\u30fb\u30fb\u30fb\u30fb\u306e\u306f\u3061\u3087\u3063\u3068\u7121\u7406\u306a\u306e\u3067\u3001\u30ab\u30e1\u30e9\u306b\u306f\u30b7\u30fc\u30eb\u3092\u8cbc\u3063\u3066\u30d6\u30ed\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3059\ud83d\ude02<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u4e00\u5ea6\u30e2\u30fc\u30b7\u30e7\u30f3\u30fb\u30c7\u30a3\u30c6\u30af\u30b7\u30e7\u30f3\u3092\u8a66\u3057\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 style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/><br \/>\n<span style=\"font-size: 1rem;\">\u300c\u3044\u3064\u304b\u3001\u30a4\u30f3\u30c9\u306e\u9752\u9b3c\u3064\u304f\u3063\u3066\u308b\u30e4\u30c3\u30db\u30fc\u30d6\u30eb\u30fc\u30a4\u30f3\u30b0\u3055\u3093\u304c\u3001\u3053\u306e\u30d6\u30ed\u30b0\u306e\u30b9\u30dd\u30f3\u30b5\u30fc\u3068\u304b\u306a\u3063\u3066\u304f\u3093\u306a\u3044\u304b\u306a\u30fb\u30fb\u30fb\u300d<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593QR\u30b3\u30fc\u30c9\u3067\u81ea\u52d5\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u6a5f\u80fd\u3092\u3064\u304f\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u300cPC\u3068\u30ea\u30a2\u30eb\u306e\u878d\u5408\u300d\u3092\u30c6\u30fc\u30de\u306b\u3057\u305f\u8a18\u4e8b\u3092\u3044\u304f\u3064\u304b\u516c\u958b\u3057\u307e\u3057\u305f\u3002 \u3053\u308c\u3089\u306e\u8a18\u4e8b\u306e\u4e2d\u3067\u306f\u30a6\u30a7\u30d6 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4407\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel + JavaScript\u3011\u30d6\u30e9\u30a6\u30b6\u3067\u76e3\u8996\u30ab\u30e1\u30e9\u3092\u3064\u304f\u308b\uff08\u753b\u50cf\u4fdd\u5b58\u6a5f\u80fd\u4ed8\u304d\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4417,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3],"tags":[163],"class_list":["post-4407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-laravel","tag-163"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4407","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=4407"}],"version-history":[{"count":5,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4407\/revisions"}],"predecessor-version":[{"id":4418,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4407\/revisions\/4418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4417"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}