{"id":2192,"date":"2018-11-10T02:25:55","date_gmt":"2018-11-09T17:25:55","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=2192"},"modified":"2018-11-28T17:10:24","modified_gmt":"2018-11-28T08:10:24","slug":"laravel-js%e3%81%a7%e3%83%90%e3%83%bc%e3%82%b3%e3%83%bc%e3%83%89%e9%85%8d%e9%80%81%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=2192","title":{"rendered":"Laravel + JS\u3067\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4ee5\u524d\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=2140\">Python, PHP, JavaScript\u3067QR\u30b3\u30fc\u30c9\u3092\u3064\u304f\u3063\u3066\u307f\u3088\u3046\uff01<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001QR\u30b3\u30fc\u30c9\u3068\u3044\u308f\u308c\u3066\u601d\u3044\u51fa\u3059\u3082\u3046\u4e00\u3064\u306e\u8aad\u307f\u53d6\u308a\u5f62\u5f0f\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3067\u3059\u3001\u30d0\u30fc\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u8cb7\u3044\u7269\u3092\u3059\u308b\u307b\u307b\u307c\u3069\u3093\u306a\u5546\u54c1\u306b\u3082\u30d0\u30fc\u30b3\u30fc\u30c9\u304c\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3057\u3001\u307e\u305f\u914d\u9001\u696d\u8005\u3055\u3093\u304c\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u30d4\u30c3\uff01\u3068\u8aad\u307f\u53d6\u3063\u3066\u914d\u9001\u5b8c\u4e86\u51e6\u7406\u3092\u3057\u3066\u3044\u305f\u308a\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4eca\u56de\u306f\u30a6\u30a7\u30d6\u74b0\u5883\u3060\u3051\u3067\u3053\u306e\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308a\u3001\u914d\u9001\u5b8c\u4e86\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1785 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/15-2-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p>\u203b \u958b\u767a\u74b0\u5883\uff1a Laravel 5.7<\/p>\n<h1>\u914d\u9001\u60c5\u5831\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u914d\u9001\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u30c6\u30fc\u30d6\u30eb<code>shipments<\/code>\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30e2\u30c7\u30eb\u3068\u4e00\u7dd2\u306b\uff12\u3064\u540c\u6642\u3067\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan make:model Shipment -m<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5546\u54c1ID\uff08\u30d0\u30fc\u30b3\u30fc\u30c9\u306eID\uff09\u3068\u5546\u54c1\u540d\u3001\u914d\u9001\u5148\u3001\u305d\u3057\u3066\u914d\u9001\u306e\u72b6\u6cc1\u304c\u308f\u304b\u308b<code>status<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>Schema::create('<strong>shipments<\/strong>', function (Blueprint $table) {\r\n    $table-&gt;increments('id');\r\n<strong>    $table-&gt;string('product_code');<\/strong>\r\n<strong>    $table-&gt;string('product_name');\r\n    $table-&gt;string('address');\r\n    $table-&gt;string('status');<\/strong>\r\n    $table-&gt;timestamps();\r\n});<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3059\u308b<code>Seeder<\/code>\u3082\u3064\u304f\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:seed ShipmentsTableSeeder<\/strong><\/pre>\n<p>\u4e2d\u8eab\u306f\u3053\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>public function run()\r\n{\r\n<strong>    $shipping_products = [<\/strong>\r\n<strong>        '9784167908782' =&gt; 'Jimmy',<\/strong>\r\n<strong>        '9784800270665' =&gt; '\u30b9\u30de\u30db\u3092\u843d\u3068\u3057\u305f\u3060\u3051\u306a\u306e\u306b',<\/strong>\r\n<strong>        '9784334768805' =&gt; '\u821f\u3092\u7de8\u3080'<\/strong>\r\n<strong>    ];<\/strong>\r\n<strong>    foreach ($shipping_products as $product_code =&gt; $product_name) {<\/strong>\r\n\r\n<strong>        $shipment = new \\App\\Shipment();<\/strong>\r\n<strong>        $shipment-&gt;product_code = $product_code;<\/strong>\r\n<strong>        $shipment-&gt;product_name = $product_name;<\/strong>\r\n<strong>        $shipment-&gt;address = '\u6771\u4eac\u90fd\u58a8\u7530\u533a\u62bc\u4e0a\uff11\u4e01\u76ee\uff11\u2212\uff12';<\/strong>\r\n<strong>        $shipment-&gt;status = 'shipping'; \/\/ \u914d\u9001\u4e2d<\/strong>\r\n<strong>        $shipment-&gt;save();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u203b \u3061\u306a\u307f\u306b\u914d\u9001\u5546\u54c1\u306f\u79c1\u304c\u6700\u8fd1\u8aad\u3093\u3060\uff08\u8aad\u307f\u304b\u3051\uff09\u306e\u5c0f\u8aac\u3067\u3001\u4f4f\u6240\u306f\u6771\u4eac\u30b9\u30ab\u30a4\u30c4\u30ea\u30fc\u306e\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f<code>status<\/code>\u306f<code>shipping<\/code>\uff08\u914d\u9001\u4e2d\uff09\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Seeder<\/code>\u3092\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b<code>DatabaseSeeder<\/code>\u306b\u767b\u9332\u3057\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>public function run()\r\n{\r\n    $this-&gt;call(<strong>ShipmentsTableSeeder::class<\/strong>);\r\n}<\/pre>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2193\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/shipment_example.png\" alt=\"\" width=\"812\" height=\"121\" \/><\/p>\n<h1>\u30d0\u30fc\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u53d6\u308a\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u7d9a\u3044\u3066\u30d0\u30fc\u30b3\u30fc\u30c9\u306e\u3088\u307f\u3068\u308a\u90e8\u5206\u3092JavaScript\u3067\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5229\u7528\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<a href=\"https:\/\/github.com\/serratus\/quaggaJS\" target=\"_blank\" rel=\"noopener\">quaggaJS<\/a>\u3067\u3059\u3002\uff082018\u5e7411\u67088\u65e5\u73fe\u5728\u3001MIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5546\u7528\u306b\u3082\u5229\u7528\u3057\u3084\u3059\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306fHTML\u304b\u3089\u3002<br \/>\n<code>QuaggaJS<\/code>\u3067\u306f\u521d\u671f\u72b6\u614b\u3067\u30bb\u30ec\u30af\u30bf\u30fc\u304c<code>#interactive.viewport<\/code>\u3068\u306a\u3063\u3066\u3044\u308b\u5834\u6240\u3067\u30ab\u30e1\u30e9\u306e\u6620\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;div <strong>id=\"interactive\" class=\"viewport\"<\/strong>&gt;&lt;\/div&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30e1\u30a4\u30f3\u306eJavaScript\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre>&lt;script src=\".\/js\/quaggaJS\/dist\/quagga.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    <strong>Quagga.init({<\/strong>\r\n<strong>        inputStream: { type : 'LiveStream' },<\/strong>\r\n<strong>        decoder: {<\/strong>\r\n<strong>            readers: [{<\/strong>\r\n<strong>                format: 'ean_reader',<\/strong>\r\n<strong>                config: {}<\/strong>\r\n<strong>            }]<\/strong>\r\n<strong>        }<\/strong>\r\n<strong>    }, (err) =&gt; {<\/strong>\r\n\r\n<strong>        if(!err) {<\/strong>\r\n\r\n<strong>            Quagga.start();<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    });<\/strong>\r\n\r\n    <strong>Quagga.onDetected((result) =&gt; {<\/strong>\r\n\r\n<strong>        var code = result.codeResult.code;<\/strong>\r\n<strong>        \/\/ \u3053\u3053\u3067Ajax\u3092\u901a\u3057\u3066\u914d\u9001\u5b8c\u4e86\u51e6\u7406\u3092\u3059\u308b<\/strong>\r\n\r\n<strong>    });<\/strong>\r\n\r\n&lt;\/script&gt;<\/pre>\n<p>\u4eca\u56de\u306f\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u30d0\u30fc\u30b3\u30fc\u30c9\u691c\u77e5\u4e2d\u306e\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\uff08\u7dd1\u306e\u67a0\u7dda\u3084\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u691c\u77e5\u3057\u305f\u6642\u306b\u8868\u793a\u3055\u308c\u308b\u8d64\u3044\u7dda\uff09\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3053\u308c\u3089\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>&lt;canvas&gt;<\/code>\u30bf\u30b0\u306ecss\u3092\u8a2d\u5b9a\u3057\u3001<code>Quagga.onProcessed()<\/code>\u5185\u3067\u3001\u30ad\u30e3\u30f3\u30d0\u30b9\u306e\u67a0\u7dda\u3092\u5f15\u304f\u30b3\u30fc\u30c9\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u3001QuaggaJS\u4ed8\u968f\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<code>live_w_locator.html<\/code>\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u3001\u30b3\u30fc\u30c9\u306e\u8aac\u660e\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a<code>Quagga.init()<\/code>\u3067\u3059\u3002<br \/>\n\u7b2c\uff11\u5f15\u6570\u3067\u5404\u7a2e\u8a2d\u5b9a\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001<code>ean_reader<\/code>\u3068\u3044\u3046\u306e\u306fJAN\u30b3\u30fc\u30c9\u5f62\u5f0f\u306e\u30d0\u30fc\u30b3\u30fc\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u30bf\u30a4\u30d7\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>Quagga.onDetected()<\/code>\u3067\u3059\u3002<br \/>\n\u305d\u306e\u540d\u306e\u901a\u308a\u30d0\u30fc\u30b3\u30fc\u30c9\u304c\u691c\u51fa\u3055\u308c\u305f\u3068\u304d\u306b\u547c\u3070\u308c\u308b\u95a2\u6570\u3067\u3001\u3053\u306e\u4e2d\u3067Ajax\u3092\u901a\u3057\u3066\u914d\u9001\u5b8c\u4e86\u51e6\u7406\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>Ajax\u3067\u914d\u9001\u5b8c\u4e86\u51e6\u7406\u3092\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30d0\u30fc\u30b3\u30fc\u30c9\u304c\u691c\u51fa\u3055\u308c\u305f\u3089<code>status<\/code>\u3092\u5b8c\u4e86\u3092\u610f\u5473\u3059\u308b<code>shipped<\/code>\u3078\u5909\u66f4\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u5148\u307b\u3069\u306b\u7d9a\u3044\u3066JavaScript\u306e\u30b3\u30fc\u30c9\u304b\u3089\u3002<br \/>\nAjax\u901a\u4fe1\u304c\u7c21\u5358\u306b\u3067\u304d\u308b<code>axios<\/code>\u3092<code>cdn<\/code>\u304b\u3089\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.18.0\/axios.js\"&gt;&lt;\/script&gt;<\/strong><\/pre>\n<pre>let <strong>checking<\/strong> = false;\r\n\r\nQuagga.onDetected((result) =&gt; {\r\n\r\n    var code = result.codeResult.code;\r\n    const url = '\/shipment\/check';\r\n\r\n    if(!checking) {\r\n\r\n        checking = true;\r\n        <strong>axios.post(url, { code: code })<\/strong>\r\n<strong>            .then((response) =&gt; {<\/strong>\r\n\r\n<strong>                const result = response.data.result;<\/strong>\r\n\r\n<strong>                if(result) {<\/strong>\r\n\r\n<strong>                    const productName = response.data.shipment.product_name;<\/strong>\r\n<strong>                    alert('\u300c'+ productName +'\u300d\u306e\u914d\u9001\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002');<\/strong>\r\n\r\n<strong>                } else {<\/strong>\r\n\r\n<strong>                    alert('\u3053\u306e\u5546\u54c1\u306f\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            .catch((error) =&gt; {})<\/strong>\r\n<strong>            .then(() =&gt; {<\/strong>\r\n\r\n<strong>                checking = false;<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n    }\r\n\r\n});<\/pre>\n<p>\u307e\u305a<code>checking<\/code>\u3067\u3059\u304c\u3001\u3053\u308c\u306fAjax\u901a\u4fe1\u3067\u914d\u9001\u5b8c\u4e86\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u9593\u3082\u30d0\u30fc\u30b3\u30fc\u30c9\u8aad\u307f\u53d6\u308a\u306f\u5b9f\u884c\u4e2d\u306a\u306e\u3067\u3001\u4f55\u5ea6\u3082\u4f55\u5ea6\u3082\u5f8c\u304b\u3089\u5b9f\u884c\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3067\u306f\u30e6\u30fc\u30b6\u30fc\u30d3\u30ea\u30c6\u30a3\u304c\u3044\u3044\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001Ajax\u901a\u4fe1\u3092\u3057\u3066\u3044\u308b\u9593\u306f\u65b0\u3057\u3044\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3082\u3057\u914d\u9001\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u305f\u3089\u5546\u54c1\u540d\u3092\u30a2\u30e9\u30fc\u30c8\u8868\u793a\u3057\u3001\u3082\u3057\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a8\u30e9\u30fc\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066Ajax\u3067\u30c7\u30fc\u30bf\u9001\u4fe1\u3055\u308c\u308b\u5148\u306eLaravel\u5074\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>public function check(Request $request) {<\/strong>\r\n\r\n<strong>    $query = \\App\\Shipment::where('product_code', $request-&gt;code);<\/strong>\r\n\r\n<strong>    if($query-&gt;exists()) {<\/strong>\r\n\r\n<strong>        $shipment = $query-&gt;first();<\/strong>\r\n<strong>        $shipment-&gt;status = 'shipped';<\/strong>\r\n<strong>        $shipment-&gt;save();<\/strong>\r\n\r\n<strong>        return [<\/strong>\r\n<strong>            'result' =&gt; true,<\/strong>\r\n<strong>            'shipment' =&gt; $shipment<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    return ['result' =&gt; false];<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u307e\u305a<code>product_code<\/code>\u3092\u4f7f\u3063\u3066\u3053\u306e\u30d0\u30fc\u30b3\u30fc\u30c9\u306e\u914d\u9001\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30c7\u30fc\u30bf\u304c\u898b\u3064\u304b\u308c\u3070<code>status<\/code>\u3092<code>shipped<\/code>\uff08\u914d\u9001\u5b8c\u4e86\uff09\u306b\u5909\u66f4\u3057\u3066\u4fdd\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30b9\u30de\u30db\u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u914d\u9001\u30c7\u30fc\u30bf\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5546\u54c1\u3092\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2201\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042108.jpg\" alt=\"\" width=\"474\" height=\"1000\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042108.jpg 474w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042108-142x300.jpg 142w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042108-485x1024.jpg 485w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/p>\n<p>\u914d\u9001\u5b8c\u4e86\u306e\u30a2\u30e9\u30fc\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u5ff5\u306e\u70ba\u3001DB\u30c6\u30fc\u30d6\u30eb\u3082\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2202\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/shipment_example_2.png\" alt=\"\" width=\"605\" height=\"118\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/shipment_example_2.png 605w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/shipment_example_2-300x59.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/p>\n<p>\u3053\u3061\u3089\u3082\u3046\u307e\u304f<code>shipped<\/code>\u3078\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u5546\u54c1\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2200\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042523.jpg\" alt=\"\" width=\"474\" height=\"1000\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042523.jpg 474w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042523-142x300.jpg 142w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot_20181109-042523-485x1024.jpg 485w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/p>\n<p>\u3053\u3061\u3089\u3082\u3046\u307e\u304f\u51e6\u7406\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>Google Chrome\u306e\u5834\u5408\u306f\u5fc5\u305a\u30bb\u30ad\u30e5\u30a2\uff08\u3064\u307e\u308a\u3001HTTPS\uff09\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u3067\u306a\u3044\u3068\u30ab\u30e1\u30e9\u304c\u4f7f\u3048\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u30c6\u30b9\u30c8\u3059\u308b\u306b\u306f\u3001\u81ea\u5206\u3067\u7f72\u540d\u3057\u305f\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u3066HTTPS\u63a5\u7d9a\u3059\u308b\u304b\u3001\u3082\u3057\u304f\u306fFirefox\u306f\u307e\u3060HTTP\u3067\u3082\u30ab\u30e1\u30e9\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u3053\u3061\u3089\u3092\u4f7f\u3046\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h1>\u6559\u6750\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\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001QuaggaJS\u672c\u4f53\u306f\u3054\u81ea\u8eab\u3067\u8a2d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=2203&amp;tmstv=1777527148\" rel=\"nofollow\" id=\"download-link-2203\" data-redirect=\"false\" >\n\tLaravel + JS\u3067\u30d0\u30fc\u30b3\u30fc\u30c9\u914d\u9001\u30c1\u30a7\u30c3\u30af<\/a>\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4ee5\u524d\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3001Python, PHP, JavaScript\u3067QR\u30b3\u30fc\u30c9\u3092\u3064\u304f\u3063\u3066\u307f\u3088\u3046\uff01\u3068\u3044\u3046\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002 \u305d\u3057\u3066\u3001QR\u30b3\u30fc\u30c9\u3068\u3044\u308f\u308c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=2192\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + JS\u3067\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\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":2208,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3,97],"tags":[108,109],"class_list":["post-2192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-laravel","category-97","tag-108","tag-109"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2192","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=2192"}],"version-history":[{"count":8,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2192\/revisions"}],"predecessor-version":[{"id":2733,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2192\/revisions\/2733"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/2208"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}