{"id":12272,"date":"2023-12-24T07:00:42","date_gmt":"2023-12-23T22:00:42","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12272"},"modified":"2023-12-24T03:34:41","modified_gmt":"2023-12-23T18:34:41","slug":"%e3%80%90%e3%81%8a%e5%b9%b4%e7%8e%89%e7%94%a8%e3%80%91%ef%bc%93%e3%81%a4%e3%81%ae%e6%95%b0%e5%ad%97%e3%82%92%e3%82%b2%e3%83%83%e3%83%88%e3%81%97%e3%81%a6%e5%ae%9d%e7%ae%b1%e3%82%92%e9%96%8b%e3%81%91","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12272","title":{"rendered":"\u3010\u304a\u5e74\u7389\u7528\u3011\uff13\u3064\u306e\u6570\u5b57\u3092\u30b2\u30c3\u30c8\u3057\u3066\u5b9d\u7bb1\u3092\u958b\u3051\u308b\u6a5f\u80fd\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306b\u306f\u59ea\u3063\u5b50\u304c\uff12\u4eba\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5b9a\u671f\u7684\u306b\u79c1\u306e\u3068\u3053\u308d\u306b\u6765\u3066\u304f\u308c\u308b\u3053\u3068\u3082\u3042\u3063\u3066\u304a\u5c0f\u9063\u3044\u3084\u304a\u5e74\u7389\u3092\u3042\u3052\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u666e\u901a\u306b\u3042\u3052\u308b\u3060\u3051\u3058\u3083\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3042\u3052\u65b9\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u90e8\u5c4b\u306b\u304a\u91d1\u3092\u96a0\u3057\u3066\u304a\u3044\u3066\u5b9d\u63a2\u3057\u3092\u3055\u305b\u308b\uff08\u9054\u6210\u611f\u3082\u30d7\u30ec\u30bc\u30f3\u30c8\uff09<\/li>\n<li>\u300c\u308f\u3044\u308d\u3060\u3088\u300d\u3068\u66f8\u3044\u305f\u30dd\u30c1\u888b\u3067\u3042\u3052\u308b\uff08\u30af\u30b9\u30c3\u3068\u7b11\u3044\u304c\u307b\u3057\u304b\u3063\u305f\uff09<\/li>\n<li>\u30ab\u30ca\u30c0\u30c9\u30eb\u3067\u3042\u3052\u308b\uff08\u3044\u3064\u304b\u30ab\u30ca\u30c0\u306b\u884c\u304f\u3093\u3060\u3088\u3068\u8a00\u3044\u307e\u3057\u305f\u3002\u8ff7\u60d1\u304b\u306a\u2026\ud83d\ude05\uff09<\/li>\n<\/ul>\n<p>\u3057\u304b\u3057\u3001\u6b63\u76f4\u3082\u3046\u3044\u308d\u3044\u308d\u3068\u3084\u3063\u305f\u306e\u3067\u4eca\u5e74\u306f\u4f55\u306b\u3057\u3088\u3046\u304b\u3068\u8003\u3048\u3066\u3044\u305f\u3068\u3053\u308d\u3072\u3068\u3064\u30a2\u30a4\u30c7\u30a2\u304c\u6d6e\u304b\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u5b9d\u7bb1\u306b\u30c0\u30a4\u30e4\u30eb\u5f0f\u306e\u30ed\u30c3\u30af\u3092\u304b\u3051\u3066\u304a\u304d\u3001\uff13\u3064\u306e\u6570\u5b57\u304c\u3042\u308c\u3070\u304a\u5e74\u7389\u3092\u30b2\u30c3\u30c8\u3067\u304d\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u4f01\u753b\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3060\u3051\u306b 2,500\u5186\u306e\u5b9d\u7bb1\u3092<code>amazon<\/code>\u3067\u8cb7\u3044\u307e\u3057\u305f \ud83d\ude02<br \/>\n\u2193\u2193\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12273\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_1.jpg\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_1.jpg 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_1-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><a href=\"https:\/\/amzn.to\/3GNoasu\" target=\"_blank\" rel=\"noopener\">\u5b9d\u7bb1 \u9375\u4ed8\u304d \u30a2\u30f3\u30c6\u30a3\u30fc\u30af \u7bb1 \u30b8\u30e5\u30a8\u30ea\u30fc\u30dc\u30c3\u30af\u30b9 \u304a\u3082\u3061\u3083 \u30f4\u30a3\u30f3\u30c6\u30fc\u30b8 \u30ec\u30c8\u30ed\u98a8 \u30dc\u30c3\u30af\u30b9 \u6d77\u8cca \u6728\u88fd \u5b9d\u77f3\u7bb1 \u5c0f\u7269\u5165\u308c\u3010PR\u3011<\/a><\/p>\n<p>\u203b \u3067\u304d\u308b\u3060\u3051\u8cbb\u7528\u3092\u56de\u53ce\u3057\u305f\u3044\u306e\u3067\u3001\u30ea\u30f3\u30af\u306f<code>Amazon<\/code>\u30a2\u30d5\u30a3\u30ea\u30a8\u30a4\u30c8\u306b\u306a\u3063\u3066\u307e\u3059\u3002\u3053\u306e\u4f01\u753b\u3092\u3084\u3063\u3066\u307f\u305f\u3044\u65b9\u306f\u305c\u3072\u2757<\/p>\n<p>\u305d\u3057\u3066\u3001\u305b\u3063\u304b\u304f\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306a\u306e\u3067\u4f55\u304b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u3066\u300c<strong>\u3078\u3047\u3001\u3053\u3046\u3044\u3046\u306e\u81ea\u5206\u3067\u4f5c\u308c\u308b\u3093\u3060<\/strong>\u300d\u3068\u3044\u3046\u306e\u3082\u611f\u3058\u3066\u3082\u3089\u3048\u305f\u3089\u3001\u3068\u601d\u3044\u5b9d\u7bb1\u3092\u958b\u3051\u308b\uff13\u3064\u306e\u6570\u5b57\u306f\u300c<strong>Laravel + Vue<\/strong>\u300d\u3067\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c7\u30e2\u30da\u30fc\u30b8\u3082\u3064\u304f\u3063\u3066\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u304b\u3089\u3069\u3046\u305e\u3002\uff08\uff13\u3064\u306e\u6570\u5b57\u306e\u7b54\u3048\u306f\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u5165\u3063\u3066\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12280\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3.png\" alt=\"\" width=\"245\" height=\"245\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3.png 245w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3-100x100.png 100w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><br \/>\n\ud83d\udcdd \u30c7\u30e2\u30da\u30fc\u30b8\uff08\u3082\u3046\u4e00\u53f0\u30b9\u30de\u30db\u3044\u308a\u307e\u3059\uff01\uff09<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude04\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11002 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10.png\" alt=\"\" width=\"370\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/09\/no_10-300x235.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u90e8\u5c4b\u306b\u304a\u91d1\u3092\u96a0\u3057\u305f\u3068\u304d\u306f\u3001<br \/>\n\u6b21\u306f\u753a\u5185\u306e\u3069\u3053\u304b\u306b\u96a0\u305b\u3001<br \/>\n\u3068\u8a00\u308f\u308c\u307e\u3057\u305f \ud83d\ude04\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x\u3001Vue 3\uff08Options API\uff09<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u4eca\u56de\u306f\u6280\u8853\u7684\u306a\u3053\u3068\u306f\u307b\u307c\u306a\u3044\u306e\u3067\u3001\u3044\u304d\u306a\u308a\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff08<code>CDN<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u4e0d\u8981\u3067\u3059\ud83d\udc4d\uff09<\/p>\n<p>\u203b <span style=\"font-size: 1rem;\">\u306a\u304a\u3001\u753b\u50cf\u306f\u30c7\u30e2\u30da\u30fc\u30b8\u3068\u306f\u9055\u3044\u300c<\/span><strong style=\"font-size: 1rem;\">https:\/\/placehold.jp\/150&#215;150.png<\/strong><span style=\"font-size: 1rem;\">\u300d\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><strong>resources\/views\/treasure\/index.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;title&gt;\u65b0\u6625\u304a\u5e74\u7389\u4f01\u753b&amp;#x2757;\uff13\u3064\u306e\u6570\u5b57\u3067\u5b9d\u7bb1\u3092\u958b\u3051\u308d&amp;#128176;&amp;#10024;&lt;\/title&gt;\r\n        &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\r\n        &lt;link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\"&gt;\r\n        &lt;link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin&gt;\r\n        &lt;link href=\"https:\/\/fonts.googleapis.com\/css2?family=Hina+Mincho&amp;family=Noto+Serif+JP:wght@600&amp;display=swap\" rel=\"stylesheet\"&gt;\r\n        &lt;style&gt;\r\n\r\n            .noto-serif-jp {\r\n                font-family: 'Noto Serif JP', serif;\r\n            }\r\n\r\n            .hina-mincho {\r\n                font-family: 'Hina Mincho', serif;\r\n            }\r\n\r\n        &lt;\/style&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body class=\"p-8 bg-[url('https:\/\/placehold.jp\/150x150.png')] bg-cover w-full h-screen\"&gt;\r\n        &lt;div id=\"app\" &gt;\r\n            &lt;div class=\"text-3xl text-red-700 text-center noto-serif-jp font-bold mb-3\"&gt;\r\n                \u3010\u65b0\u6625\u304a\u5e74\u7389\u4f01\u753b&amp;#x2757;\u3011\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"text-5xl text-red-700 text-center mb-10 noto-serif-jp font-bold\" style=\"line-height:5rem;\"&gt;\r\n                \uff13\u3064\u306e\u6570\u5b57\u3067\u5b9d\u7bb1\u3092\u958b\u3051\u308d&amp;#128176;&amp;#10024;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"flex mb-10\"&gt;\r\n                &lt;div class=\"w-1\/2 flex justify-center items-start pt-24\"&gt;\r\n                    &lt;img src=\"https:\/\/placehold.jp\/150x150.png\" class=\"w-2\/3 border-4 border-white\"&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"w-1\/2 flex justify-center items-start\"&gt;\r\n                    &lt;img src=\"https:\/\/placehold.jp\/150x150.png\" class=\"w-3\/4\"&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n\r\n            &lt;!-- \uff11\u3064\u76ee\u306e\u554f\u984c --&gt;\r\n            &lt;heading-component\r\n                title=\"\u301c \uff11\u3064\u76ee\u306e\u6570\u5b57 \u301c\"\r\n                difficulty=\"1\"\r\n                description=\"\u3061\u3087\u3046\u3069\u771f\u3093\u4e2d\u306e\u6570\u5b57\u3092\u30b2\u30c3\u30c8\u3057\u308d&amp;#x2757;&amp;#x2757;\"&gt;&lt;\/heading-component&gt;\r\n            &lt;div class=\"flex mb-32\"&gt;\r\n                &lt;div class=\"w-full flex justify-center items-start\"&gt;\r\n                    &lt;div id=\"qrcode\" class=\"p-5 bg-white border-4 border-black\"&gt;&lt;\/div&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n\r\n            &lt;!-- \uff12\u3064\u76ee\u306e\u554f\u984c --&gt;\r\n            &lt;heading-component\r\n                title=\"\u301c \uff12\u3064\u76ee\u306e\u6570\u5b57 \u301c\"\r\n                difficulty=\"3\"\r\n                description=\"\u25a1 \u306b\u5f53\u3066\u306f\u307e\u308b\u6570\u5b57\u3092\u30b2\u30c3\u30c8\u3057\u308d&amp;#x2757;&amp;#x2757;\"&gt;&lt;\/heading-component&gt;\r\n            &lt;div class=\"text-4xl text-center bg-gray-50 border-gray-100 rounded-lg p-5 mb-32\" style=\"line-height:4rem;\"&gt;\r\n                &lt;div class=\"text-right text-sm text-blue-600 underline\"&gt;\r\n                    &lt;a href=\"#\" @click.prevent=\"isShowingClueOfSecondQuestion = true\"&gt;\u30d2\u30f3\u30c8\u3092\u4f7f\u3046&lt;\/a&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div v-html=\"secondQuestionText\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n\r\n            &lt;!-- \uff13\u3064\u76ee\u306e\u554f\u984c --&gt;\r\n            &lt;heading-component\r\n                title=\"\u301c \uff13\u3064\u76ee\u306e\u6570\u5b57 \u301c\"\r\n                difficulty=\"5\"\r\n                description=\"\u25a1 \u306b\u5f53\u3066\u306f\u307e\u308b\u6570\u5b57\u3092\u30b2\u30c3\u30c8\u3057\u308d&amp;#x2757;&amp;#x2757;\"&gt;&lt;\/heading-component&gt;\r\n            &lt;div class=\"text-5xl text-center bg-gray-50 border-gray-100 rounded-lg p-5 mb-12\" style=\"line-height:4rem;\"&gt;\r\n                &lt;div class=\"text-right text-sm text-blue-600 underline\"&gt;\r\n                    &lt;a href=\"#\" @click.prevent=\"isShowingClueOfThirdQuestion = true\"&gt;\u30d2\u30f3\u30c8\u3092\u4f7f\u3046&lt;\/a&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div v-html=\"thirdQuestionText\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n            &lt;br&gt;\r\n        &lt;\/div&gt;\r\n\r\n        &lt;!-- Template --&gt;\r\n        &lt;template id=\"heading-template\"&gt;\r\n            &lt;div class=\"text-4xl text-red-700 text-center mb-5 hina-mincho font-bold\" v-text=\"title\"&gt;&lt;\/div&gt;\r\n            &lt;div class=\"text-2xl text-red-700 text-center mb-5 hina-mincho\" v-text=\"difficultyStars\"&gt;&lt;\/div&gt;\r\n            &lt;div class=\"mb-5 hina-mincho text-black bg-gray-50 border-2 border-gray-100 p-6 rounded-lg\"&gt;\r\n                &lt;div class=\"text-2xl \" v-text=\"description\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"text-4xl text-center text-gray-800 mb-8 font-bold\"&gt;\r\n                \u2193 \u2193 \u2193\r\n            &lt;\/div&gt;\r\n        &lt;\/template&gt;\r\n\r\n        &lt;script src=\"https:\/\/unpkg.com\/vue@3.3.12\/dist\/vue.global.prod.js\"&gt;&lt;\/script&gt;\r\n        &lt;script src=\"https:\/\/cdn.tailwindcss.com\/3.3.7\"&gt;&lt;\/script&gt;\r\n        &lt;script src=\"https:\/\/cdn.rawgit.com\/davidshimjs\/qrcodejs\/gh-pages\/qrcode.min.js\"&gt;&lt;\/script&gt;\r\n        &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/lodash@4.17.21\/lodash.min.js\"&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n\r\n            const headingComponent = {\r\n                props: {\r\n                    title: {\r\n                        type: String,\r\n                        required: true,\r\n                    },\r\n                    difficulty: {\r\n                        type: Number,\r\n                        required: true,\r\n                    },\r\n                    description: {\r\n                        type: String,\r\n                        required: true,\r\n                    },\r\n                },\r\n                template: '#heading-template',\r\n                computed: {\r\n                    difficultyStars() {\r\n\r\n                        const starCount = 5;\r\n                        const blackStars = _.repeat('\u2605', this.difficulty);\r\n                        const whiteStars = _.repeat('\u2606', starCount - this.difficulty);\r\n\r\n                        return `\u96e3\u6613\u5ea6\uff1a ${blackStars}${whiteStars}`;\r\n\r\n                    }\r\n                }\r\n            };\r\n\r\n            Vue.createApp({\r\n                components: {\r\n                    headingComponent,\r\n                },\r\n                data() {\r\n\r\n                    return {\r\n                        answers: [\r\n                            8, \/\/ 0 \u301c 9\r\n                            4, \/\/ 0 \u301c 6\r\n                            9, \/\/ 6 or 9\r\n                        ],\r\n                        isShowingClueOfSecondQuestion: false,\r\n                        isShowingClueOfThirdQuestion: false,\r\n                    }\r\n\r\n                },\r\n                methods: {\r\n                    init() {\r\n\r\n                        this.initQrcode();\r\n\r\n                    },\r\n                    initQrcode() {\r\n\r\n                        const qrcodeAnswer = this.answers[0];\r\n                        const firstRandomNumber = _.random(1111111111, 9999999999);\r\n                        const secondRandomNumber = _.random(1111111111, 9999999999);\r\n                        const answer = `${firstRandomNumber}${qrcodeAnswer}${secondRandomNumber}`;\r\n\r\n                        new QRCode(document.getElementById('qrcode'), answer);\r\n\r\n                    }\r\n                },\r\n                computed: {\r\n                    secondQuestionText() {\r\n\r\n                        let questionTexts = [];\r\n                        const answerNumber = this.answers[1];\r\n                        const dayNames = (this.isShowingClueOfSecondQuestion === true)\r\n                            ? ['\u306b\u25cb\u25cb\u25cb\u3073', '\u3052\u25cb\u25cb\u25cb\u3073', '\u304b\u25cb\u25cb\u3073', '\u3059\u25cb\u25cb\u25cb\u3073', '\u3082\u25cb\u25cb\u25cb\u3073', '\u304d\u25cb\u25cb\u25cb\u3073', '\u3069\u25cb\u25cb\u3073']\r\n                            : ['\u306b', '\u3052', '\u304b', '\u3059', '\u3082', '\u304d', '\u3069'];\r\n\r\n                        if(typeof dayNames[answerNumber] === 'undefined') {\r\n\r\n                            const maxIndex = dayNames.length - 1;\r\n                            alert(`\uff12\u76ee\u306e\u7b54\u3048\u306f\u30010 \u301c ${maxIndex}\u306e\u6570\u5b57\u3067\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044`);\r\n\r\n                        } else {\r\n\r\n                            dayNames.forEach((dayName, index) =&gt; {\r\n\r\n                                const questionText = (index === answerNumber)\r\n                                    ? `${dayName} \u2192 &lt;span class=\"text-red-600 font-bold\"&gt;\u25a1&lt;\/span&gt;`\r\n                                    : `${dayName} \u2192 ${index}`;\r\n                                questionTexts.push(questionText);\r\n\r\n                            });\r\n\r\n                            const shuffledQuestionTexts = _.shuffle(questionTexts);\r\n\r\n                            return shuffledQuestionTexts.join('&lt;br&gt;');\r\n\r\n                        }\r\n\r\n                    },\r\n                    thirdQuestionText() {\r\n\r\n                        let questionTexts = [];\r\n                        const answerNumber = this.answers[2];\r\n\r\n                        if([6, 9].includes(answerNumber) === false) {\r\n\r\n                            alert('\uff13\u76ee\u306e\u7b54\u3048\u306f\u30016 \u304b 9\u3067\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044');\r\n                            return;\r\n\r\n                        }\r\n\r\n                        const answerPatterns = [\r\n                            { answer: 6,  question: '\u2192 + \u2192' },\r\n                            { answer: 9,  question: '\u2192 + \u2193' },\r\n                            { answer: 12,  question: '\u2193 + \u2193' },\r\n                            { answer: 15,  question: '\u2192 + \u2191' },\r\n                            { answer: 18,  question: '\u2193 + \u2191' },\r\n                            { answer: 21,  question: '\u2190 + \u2191' },\r\n                            { answer: 24,  question: '\u2191 + \u2191' },\r\n                        ];\r\n                        const shuffledAnswerPatterns = _.shuffle(answerPatterns);\r\n\r\n                        shuffledAnswerPatterns.forEach((answerPattern) =&gt; {\r\n\r\n                            let answer = '';\r\n\r\n                            if(answerPattern.answer !== answerNumber) {\r\n\r\n                                answer = answerPattern.answer;\r\n\r\n                            } else {\r\n\r\n                                answer = (this.isShowingClueOfThirdQuestion === true)\r\n                                    ? '&amp;#128338;'\r\n                                    : '\u25a1';\r\n\r\n                            }\r\n\r\n                            const question = answerPattern.question;\r\n                            const questionText = `${question} = &lt;span class=\"text-red-600 font-bold\"&gt;${answer}&lt;\/span&gt;`;\r\n\r\n                            questionTexts.push(questionText);\r\n\r\n                        });\r\n\r\n                        return questionTexts.join('&lt;br&gt;');\r\n\r\n                    }\r\n                },\r\n                mounted() {\r\n\r\n                    this.init();\r\n\r\n                }\r\n            })\r\n            .mount('#app');\r\n\r\n        &lt;\/script&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u3061\u306a\u307f\u306b\u80cc\u666f\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u306f<code>ChatGPT<\/code>\u306e<code>DALL\u00b7E<\/code>\u3067\u4f5c\u308a\u3001\u52a0\u5de5\u3057\u305f\u3082\u306e\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\u30db\u30f3\u30c8\u306b\u4fbf\u5229\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12275\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_2.png\" alt=\"\" width=\"749\" height=\"781\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_2.png 749w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_2-288x300.png 288w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p><strong>routes\/web.php<\/strong><\/p>\n<\/div>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('treasure', fn() =&gt; view('treasure.index'));<\/strong><\/pre>\n<p>\u3053\u308c\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306f\u77ed\u3044\u3067\u3059\u304c\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u2026\u3068\u3044\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u3067\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12280\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3.png\" alt=\"\" width=\"245\" height=\"245\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3.png 245w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/12\/laravel_vue_treasure_box_3-100x100.png 100w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><br \/>\n<strong>\ud83d\udcdd \u30c7\u30e2\u30da\u30fc\u30b8<\/strong><\/p>\n<\/div>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306f\u5bb6\u5ead\u5185\u3067\u306e\u8a71\u3067\u3057\u305f\u304c\u3001\u79c1\u306f\u3053\u3046\u3044\u3063\u305f\u30ea\u30a2\u30eb\u3068\u30c7\u30b8\u30bf\u30eb\u306e\u878d\u5408\u3057\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u597d\u304d\u306a\u306e\u3067\u3001\u3082\u3057\u4f55\u304b\u305d\u3046\u3044\u3063\u305f\u3053\u3068\u3067\u304a\u529b\u306b\u306a\u308c\u305d\u3046\u3067\u3057\u305f\u3089\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f100%\u81ea\u5df1\u6e80\u8db3\u306a\u8a18\u4e8b\u3067\u3057\u305f\u304c\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305b\u3063\u304b\u304f\u5b50\u4f9b\u305f\u3061\u306b\u304a\u91d1\u3068\u3044\u3046\u30c1\u30e3\u30f3\u30b9\u3092\u4e0a\u3052\u308b\u306a\u3089\u3001\u30d7\u30e9\u30b9\u30a2\u30eb\u30d5\u30a1\u3067\u4f55\u304b\u3092\u30b2\u30c3\u30c8\u3057\u3066\u307b\u3057\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u3001\u5b9f\u969b\u306b\u30bb\u30c3\u30c8\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u30c0\u30a4\u30e4\u30eb\u30ed\u30c3\u30af\u306e\u756a\u53f7\u5909\u66f4\u304c\u308f\u304b\u3089\u305a\u76f8\u5f53\u7126\u308a\u307e\u3057\u305f\uff08\u5c0f\u3055\u306a\u9ed2\u3044\u7a74\u3092\u8033\u304b\u304d\u306e\u3088\u3046\u306a\u7d30\u3044\u68d2\u3067\u62bc\u3057\u8fbc\u3080\u3068\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u3067\u3057\u305f\ud83d\ude05\uff09<\/p>\n<p>\u307f\u306a\u3055\u3093\u3082\u305c\u3072\u4f55\u304b\u300c<strong>\u9762\u767d\u3044\u2757\u3058\u3083\u306a\u304f\u3001\u9762\u767d\u305d\u3046\ud83d\ude04<\/strong>\u300d\u306a\u4f01\u753b\u3092\u8003\u3048\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-3566\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><br \/>\n\u300c\u59ea\u3063\u5b50\u305f\u3061\u306b\u306f<br \/>\n\u524d\u5012\u3057\u3067\u30c8\u30e9\u30a4\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f<br \/>\n\u697d\u3057\u305d\u3046\u306b\u3084\u3063\u3066\u307e\u3057\u305f\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306b\u306f\u59ea\u3063\u5b50\u304c\uff12\u4eba\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5b9a\u671f\u7684\u306b\u79c1\u306e\u3068\u3053\u308d\u306b\u6765\u3066\u304f\u308c\u308b\u3053\u3068\u3082\u3042\u3063\u3066\u304a\u5c0f\u9063\u3044\u3084\u304a\u5e74\u7389\u3092\u3042\u3052\u3066\u3044\u307e\u3059\u3002 \u305f\u3060\u3001\u666e\u901a\u306b\u3042\u3052\u308b\u3060\u3051\u3058\u3083\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12272\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010\u304a\u5e74\u7389\u7528\u3011\uff13\u3064\u306e\u6570\u5b57\u3092\u30b2\u30c3\u30c8\u3057\u3066\u5b9d\u7bb1\u3092\u958b\u3051\u308b\u6a5f\u80fd\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12282,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[],"class_list":["post-12272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12272","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=12272"}],"version-history":[{"count":7,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12272\/revisions"}],"predecessor-version":[{"id":12286,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12272\/revisions\/12286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12282"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}