{"id":5204,"date":"2019-12-06T01:34:34","date_gmt":"2019-12-05T16:34:34","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=5204"},"modified":"2019-12-06T01:34:34","modified_gmt":"2019-12-05T16:34:34","slug":"%e6%84%8f%e5%a4%96%e3%81%a8%e7%b0%a1%e5%8d%98%ef%bc%81laravel%e3%81%a7gif%e3%82%a2%e3%83%8b%e3%83%a1%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=5204","title":{"rendered":"\u610f\u5916\u3068\u7c21\u5358\uff01Laravel\u3067gif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8b<a href=\"https:\/\/blog.capilano-fw.com\/?p=5195\">Laravel\u3067webp\u5f62\u5f0f\u306e\u753b\u50cf\u3092\u3064\u304f\u308b\uff06\u4f7f\u3046<\/a>\u3067\u306f<code>webp<\/code>\u3068\u3044\u3046<code>Google<\/code>\u304c\u958b\u767a\u3057\u305f\u65b0\u3057\u3044\uff06\u8efd\u91cf\u306a\u753b\u50cf\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u753b\u50cf\u306b\u95a2\u3059\u308b\u6d41\u308c\u3067\u3082\u3046\u4e00\u3064\u3042\u308b\u6a5f\u80fd\u3092<code>Laravel<\/code>\u3067\u3064\u304f\u3063\u3066\u307f\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">git\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b\u6a5f\u80fd<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p><strong>\u300cgif\u30a2\u30cb\u30e1\u300d<\/strong>\u3068\u306f\u3001\u5185\u5bb9\u304c\u52d5\u3044\u3066\u52d5\u753b\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u753b\u50cf\u306e\u3053\u3068\u3067\u3059\u3002<br \/>\n\u304a\u305d\u3089\u304f\u7686\u3055\u3093\u3082\u4e00\u5ea6\u306f\u307f\u305f\u3053\u3068\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3046\u3084\u3064\u3067\u3059\u306d\u2193\u2193\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5205\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_samurai_rabbit.gif\" alt=\"\" width=\"370\" height=\"290\" \/><\/p>\n<p>gif\u30a2\u30cb\u30e1\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u7684\u306b\u3044\u3046\u3068\u305d\u308c\u307b\u3069\u5927\u304d\u304f\u306a\u3044\u306e\u3067\u3001\u300c\u52d5\u753b\u3092\u4f7f\u3046\u307e\u3067\u306f\u3057\u306a\u304f\u3066\u3044\u3044\u3051\u3069\u3001\u4f55\u304b\u52d5\u304d\u304c\u307b\u3057\u3044\u300d\u3068\u3044\u3046\u5834\u5408\u306b\u306f\u91cd\u5b9d\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code> + <code>Vue<\/code>\u3092\u4f7f\u3063\u3066gif\u30a2\u30cb\u30e1\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\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<br \/>\n\uff08\u6700\u5f8c\u306b\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3088\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2595 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 6.x\u3001Vue 2.6<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u305f\u3060\u5358\u306bgif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306f\u6b21\u306e\u624b\u9806\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u8907\u6570\u306e\u753b\u50cf\u3092\u9078\u629e\uff06\u30d7\u30ec\u30d3\u30e5\u30fc<\/li>\n<li>\u753b\u50cf\u3092\u9001\u4fe1<\/li>\n<li>\u9001\u4fe1\u3055\u308c\u305f\u753b\u50cf\u3067gif\u30a2\u30cb\u30e1\u3092\u4f5c\u6210<\/li>\n<li>\u6700\u5f8c\u306b\u4f5c\u6210\u3055\u308c\u305fgif\u30a2\u30cb\u30e1\u3092\u8868\u793a<\/li>\n<\/ol>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h1>\u30d5\u30a9\u30eb\u30c0\u3092\u6e96\u5099\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u4f5c\u6210\u3059\u308b<code>gif<\/code>\u30a2\u30cb\u30e1\u753b\u50cf\u306f\u3001<code>\/public\/images\/gif<\/code>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4e0e\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5206\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_1.png\" alt=\"\" width=\"422\" height=\"127\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_1.png 422w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_1-300x90.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<h1>\u753b\u50cf\u3092\u7528\u610f\u3059\u308b<\/h1>\n<p>gif\u30a2\u30cb\u30e1\u306b\u3059\u308b\u753b\u50cf\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f<a href=\"https:\/\/store.line.me\/stickershop\/product\/4224594\" target=\"_blank\" rel=\"noopener noreferrer\">LINE\u30b9\u30bf\u30f3\u30d7<\/a>\u3067\u8ca9\u58f2\u3057\u3066\u3044\u308b\u753b\u50cf\u3092\u6539\u9020\u3057\u3066\u4ee5\u4e0b\u306e\uff16\u3064\u306e\u753b\u50cf\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08\u7686\u3055\u3093\u3082\u9069\u5f53\u306a\u753b\u50cf\u304c\u306a\u3044\u5834\u5408\u3001\u30c6\u30b9\u30c8\u3068\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\ud83d\ude0a\ud83d\udc4c\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5208\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_1.png\" alt=\"\" width=\"370\" height=\"290\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5209\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_2.png\" alt=\"\" width=\"370\" height=\"290\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5210\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_3.png\" alt=\"\" width=\"370\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_3.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_3-300x235.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5211\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_4.png\" alt=\"\" width=\"370\" height=\"290\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5212\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_5.png\" alt=\"\" width=\"370\" height=\"290\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5207\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_6.png\" alt=\"\" width=\"370\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_6.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_git_sample_6-300x235.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>gif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u5148\u306b<code>composer<\/code>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>composer require sybio\/gif-creator<\/strong><\/pre>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3053\u3053\u304b\u3089\u304c\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u304f\u4f5c\u696d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u5fc5\u8981\u306a\u30eb\u30fc\u30c8\u306f\u4ee5\u4e0b\u306e\uff12\u3064\u3067\u3059\u3002<br \/>\n<code>routes\/web.php<\/code>\u306b\u8ffd\u52a0\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>Route::get('animated_gif\/create', 'AnimatedGifController@create');<\/strong>\r\n<strong>Route::post('animated_gif', 'AnimatedGifController@store');<\/strong><\/pre>\n<p>\u4e0a\u306e\u30eb\u30fc\u30c8\u304c\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b<code>URL<\/code>\u3067\u3001\u4e0b\u304c<code>Ajax<\/code>\u3067\u753b\u50cf\u3092\u9001\u4fe1\u3059\u308b<code>URL<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n<code>AnimatedGifController<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u5c02\u7528\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller AnimatedGifController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Http\/Controllers\/AnimatedGifController.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse GifCreator\\GifCreator;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass AnimatedGifController extends Controller\r\n{\r\n    public function create() {\r\n\r\n        return view('animated_gif.create');\r\n\r\n    }\r\n\r\n    <strong>public function store(Request $request) {<\/strong>\r\n\r\n<strong>        $result = false;<\/strong>\r\n<strong>        $gif_url = '';<\/strong>\r\n\r\n<strong>        if($request-&gt;hasFile('images')) {<\/strong>\r\n\r\n<strong>            $frames = [];       \/\/ \u753b\u50cf\u306e\u30b3\u30de<\/strong>\r\n<strong>            $durations = [];    \/\/ \u753b\u50cf\u304c\u5909\u5316\u3059\u308b\u9593\u9694\uff08\u30df\u30ea\u79d2\uff09<\/strong>\r\n<strong>            $loop = 0;          \/\/ \u4f55\u56de\u30eb\u30fc\u30d7\u3059\u308b\u304b\u30020\u306f\u7121\u9650<\/strong>\r\n\r\n<strong>            foreach($request-&gt;images as $image) {<\/strong>\r\n\r\n<strong>                if($image-&gt;isValid()) {<\/strong>\r\n\r\n<strong>                    $frames[] = $image-&gt;path();<\/strong>\r\n<strong>                    $durations[] = 20;<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            $gc = new GifCreator();<\/strong>\r\n<strong>            $gc-&gt;create($frames, $durations, $loop);<\/strong>\r\n<strong>            $gif_data = $gc-&gt;getGif();<\/strong>\r\n\r\n<strong>            $uri = 'images\/gif\/'. date('U') .'.gif';<\/strong>\r\n<strong>            $save_path = public_path($uri);<\/strong>\r\n<strong>            file_put_contents($save_path, $gif_data);<\/strong>\r\n\r\n<strong>            $result = true;<\/strong>\r\n<strong>            $gif_url = url($uri);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return [<\/strong>\r\n<strong>            'result' =&gt; $result,<\/strong>\r\n<strong>            'gif_url' =&gt; $gif_url<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p><code>create()<\/code>\u306f\u753b\u50cf\u3092\u9078\u629e\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u3092\u8868\u793a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3001<code>store()<\/code>\u304c\u753b\u50cf\u304c\u9001\u4fe1\u3055\u308c\u3066\u304f\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u91cd\u8981\u306a\u306e\u306f<code>store()<\/code>\u3067\u3059\u304c\u3001\u3053\u306e\u4e2d\u3067\u306f\u5358\u306b\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u3092<code>GifCreator()<\/code>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\uff11\u3064\u305a\u3064\u767b\u9332\u3057\u3001\u6700\u7d42\u7684\u306b<code>getGif()<\/code>\u3067gif\u753b\u50cf\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff06\u4fdd\u5b58\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u6700\u5f8c\u306b\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<code>resources\/views\/animated_gif\/create.blade.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u4eca\u56de\u306f\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u3092\u591a\u3081\u306b\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u6a5f\u306b\u305c\u3072\u52c9\u5f37\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\ud83d\ude0a<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.4.1\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;\r\n    &lt;style&gt;\r\n\r\n        img {\r\n\r\n            border: 3px solid #000;\r\n\r\n        }\r\n\r\n    &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body class=\"p-4\"&gt;\r\n    &lt;div id=\"app\" class=\"container\"&gt;\r\n        &lt;!-- \u753b\u50cf\u3092\u9078\u629e\u3059\u308b\u90e8\u5206 --&gt;\r\n        &lt;div class=\"row\"&gt;\r\n            &lt;div class=\"col-12\"&gt;\r\n                &lt;div class=\"form-group\"&gt;\r\n                    &lt;label&gt;gif\u30a2\u30cb\u30e1\u306b\u3059\u308b\u753b\u50cf\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\uff08\u8907\u6570\uff09&lt;\/label&gt;\r\n                    &lt;input class=\"form-control\" type=\"file\" accept=\"image\/*\" multiple @change=\"onFileChange\"&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;!-- \u9078\u629e\u3055\u308c\u305f\u753b\u50cf\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u90e8\u5206 --&gt;\r\n        &lt;div class=\"row\"&gt;\r\n            <strong>&lt;div class=\"col-4 p-3\" v-for=\"(image,index) in images\"&gt;<\/strong>\r\n<strong>                &lt;div&gt;<\/strong>\r\n<strong>                    &lt;span v-text=\"(index+1)\"&gt;&lt;\/span&gt;\u30b3\u30de\u76ee<\/strong>\r\n<strong>                &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;img class=\"img-fluid\" :src=\"image.data\"&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n        &lt;\/div&gt;\r\n        &lt;!-- \u753b\u50cf\u304c\u9078\u629e\u3055\u308c\u305f\u3089\u8868\u793a\u3055\u308c\u308b\u90e8\u5206 --&gt;\r\n        &lt;div class=\"row\" v-if=\"images.length\"&gt;\r\n            &lt;div class=\"col-12 pt-4\"&gt;\r\n                <strong>&lt;button class=\"btn btn-primary\" type=\"button\" @click=\"onSubmit\"&gt;\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b&lt;\/button&gt;<\/strong>\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;!-- gif\u30a2\u30cb\u30e1\u304c\u5b8c\u6210\u3057\u305f\u3089\u8868\u793a\u3055\u308c\u308b\u90e8\u5206 --&gt;\r\n        <strong>&lt;div v-if=\"gifUrl\" class=\"pt-4\"&gt;<\/strong>\r\n<strong>            &lt;img :src=\"gifUrl\"&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n    &lt;\/div&gt;\r\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.6.0\"&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                images: [],\r\n                gifUrl: ''\r\n            },\r\n            methods: {\r\n                <strong>onFileChange(e) {<\/strong>\r\n\r\n<strong>                    this.images = [];<\/strong>\r\n<strong>                    const files = e.target.files;<\/strong>\r\n<strong>                    let promises = [];<\/strong>\r\n\r\n<strong>                    [].forEach.call(files, file =&gt; {    \/\/ \u9078\u629e\u3055\u308c\u305f\u753b\u50cf\u3092\u30eb\u30fc\u30d7<\/strong>\r\n\r\n<strong>                        let promise = new Promise(resolve =&gt; {<\/strong>\r\n\r\n<strong>                            const reader = new FileReader();<\/strong>\r\n<strong>                            reader.onload = e =&gt; {<\/strong>\r\n\r\n<strong>                                const imageData = e.target.result;<\/strong>\r\n\r\n<strong>                                \/\/ Promise\u306b\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u8fd4\u3059<\/strong>\r\n<strong>                                resolve({<\/strong>\r\n<strong>                                    file: file,<\/strong>\r\n<strong>                                    data: imageData<\/strong>\r\n<strong>                                });<\/strong>\r\n\r\n<strong>                            };<\/strong>\r\n<strong>                            reader.readAsDataURL(file);<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n<strong>                        promises.push(promise);<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n<strong>                    Promise.all(promises).then(images =&gt; {<\/strong>\r\n\r\n<strong>                        \/\/ \u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4e26\u3073\u66ff\u3048<\/strong>\r\n<strong>                        images.sort((a, b) =&gt; (a.file.name &gt; b.file.name) ? 1 : -1);<\/strong>\r\n<strong>                        this.images = images;<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n<strong>                },<\/strong>\r\n<strong>                onSubmit() {<\/strong>\r\n\r\n<strong>                    const url = '\/animated_gif';<\/strong>\r\n<strong>                    let formData = new FormData();<\/strong>\r\n\r\n<strong>                    this.images.forEach(image =&gt; {<\/strong>\r\n\r\n<strong>                        formData.append('images[]', image.file);<\/strong>\r\n\r\n<strong>                    });<\/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>                                this.gifUrl = response.data.gif_url;<\/strong>\r\n\r\n<strong>                            }<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                }<\/strong>\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\u3072\u3068\u3064\u305a\u3064\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h1>\u753b\u50cf\u3092\u9078\u629e\uff06\u30d7\u30ec\u30d3\u30e5\u30fc\u8868\u793a\u3059\u308b\u90e8\u5206<\/h1>\n<p>\u753b\u50cf\u304c\u9078\u629e\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u308b\u306e\u304c\u3001<code>onFileChange()<\/code>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u9078\u629e\u3055\u308c\u305f\u753b\u50cf\u3092<code>[].forEach.call()<\/code>\u3067\uff11\u3064\u305a\u3064\u30eb\u30fc\u30d7\u3057\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306b<code>Promise<\/code>\u3092\u3064\u304f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>Promise<\/code>\u306f\u914d\u5217\u306b\u306a\u3063\u3066<code>promises<\/code>\u306b\u683c\u7d0d\u3055\u308c\u3001\u6700\u7d42\u7684\u306b<code>Promise.all()<\/code>\u306e\u4e2d\u3067\u5b9f\u884c\u3055\u308c\u308b\uff08\u3064\u307e\u308a\u3001\u3053\u3053\u3067\u753b\u50cf\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\uff09\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code>Promise.all()<\/code>\u306f\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u3001<strong>\u300c\u30c1\u30fc\u30e0\u3068\u3057\u3066\u7d50\u679c\u304c\u3069\u3046\u306a\u3063\u305f\u304b\u300d<\/strong>\u3067\u305d\u306e\u5f8c\u306e\u51e6\u7406\u3092\u5224\u65ad\u3059\u308b\u3082\u306e\u3067\u3001\u4f8b\u3048\u3070\u91ce\u7403\u3067\u8003\u3048\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<ol>\n<li>\u6253\u9806\uff11\u756a\u306e\u9078\u624b\u304b\u3089\u9806\u306b\u6253\u5e2d\u306b\u305f\u3064<\/li>\n<li>\u30d2\u30c3\u30c8\u304c\u3067\u305f\u3089\u3001\u6b21\u306e\u9078\u624b\u304c\u6253\u5e2d\u3078\uff08\u2190\u7e70\u308a\u8fd4\u3059\uff09<\/li>\n<li>\u305f\u3060\u3057\u3001\u3072\u3068\u308a\u3067\u3082\u30a2\u30a6\u30c8\u306b\u306a\u3063\u305f\u6642\u70b9\u3067\u8a66\u5408\u306f\u8ca0\u3051<\/li>\n<\/ol>\n<p>\u3064\u307e\u308a\u3001\u5168\u3066\u306e\u4eba\u304c\u30d2\u30c3\u30c8\u3092\u6253\u3064\u3053\u3068\u304c\u3067\u304d\u308c\u3070<code>Promise.all()<\/code>\u306f\u300c\u6210\u529f\u300d\u3001\u4e00\u4eba\u3067\u3082\u30a2\u30a6\u30c8\u306b\u306a\u3063\u305f\u3089\u300c\u5931\u6557\u300d\u3068\u3044\u3046\u5224\u65ad\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3057\u3066<code>Promise<\/code>\u306e\u4e2d\u3067\u6210\u529f\u3001\u5931\u6557\u3092\u6c7a\u3081\u308b\u306e\u306f<code>resolve()<\/code>\u3068<code>reject()<\/code>\u3067\u3059\u3002<\/p>\n<pre><strong>let promise = new Promise((resolve, reject) =&gt; {<\/strong>\r\n\r\n<strong>    \/\/ \u51e6\u7406\u304c\u6210\u529f\u3057\u305f\u3089<\/strong>\r\n<strong>    resolve('\u30c7\u30fc\u30bf');<\/strong>\r\n\r\n<strong>    \/\/ \u5931\u6557\u3057\u305f\u3089<\/strong>\r\n<strong>    reject('\uff08\u30c7\u30fc\u30bf\uff09');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u5931\u6557\u3057\u305f\u5834\u5408\u306f<code>catch()<\/code>\u306e\u65b9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>Promise.all(promises).then(data =&gt; {\r\n\r\n    \/\/ \u3059\u3079\u3066\u6210\u529f\u3057\u305f\u5834\u5408\r\n\r\n})\r\n<strong>.catch(data =&gt; {<\/strong>\r\n\r\n<strong>    \/\/ \u3072\u3068\u3064\u3067\u3082\u5931\u6557\u3057\u305f\u5834\u5408<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u306a\u305c\u3053\u306e\u3088\u3046\u306a\u5f62\u3067<code>Promise<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u300c\u753b\u50cf\u306e\u8aad\u307f\u8fbc\u307f\u306f\u3044\u3064\u5b8c\u4e86\u3059\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u304b\u3089\u300d\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<code>FileReader<\/code>\u306e<code>onload<\/code>\u304c\u5b9f\u884c\u3055\u308c\u305f\u6642\u70b9\u3067\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u96c6\u3081\u3066\u3044\u304f\u308f\u3051\u3067\u3059\u304c\u3001\u753b\u50cf\u306b\u3088\u3063\u3066\u306f\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u3059\u3050\u8aad\u307f\u8fbc\u3081\u308b\u3051\u308c\u3069\u3082\u3001\u5225\u306e\u753b\u50cf\u306f\u8aad\u307f\u8fbc\u307f\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u308f\u3056\u308f\u3056<code>Promise.all()<\/code>\u3067\u5168\u3066\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u3066\u304b\u3089\uff08\u30c1\u30fc\u30e0\u3068\u3057\u3066\u306e\u7d50\u679c\u304c\u308f\u304b\u3063\u3066\u304b\u3089\uff09\u6b21\u306e\u51e6\u7406\u306b\u79fb\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h2>\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u90e8\u5206<\/h2>\n<p><code>Promise<\/code>\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3057\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u76f4\u63a5<code>&lt;img&gt;<\/code>\u30bf\u30b0\u306e<code>src<\/code>\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3068\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u50cf\u3092\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>&lt;div class=\"col-4 p-3\" v-for=\"(image,index) in images\"&gt;\r\n    &lt;div&gt;\r\n        &lt;span v-text=\"(index+1)\"&gt;&lt;\/span&gt;\u30b3\u30de\u76ee\r\n    &lt;\/div&gt;\r\n    &lt;img class=\"img-fluid\" <strong>:src=\"image.data\"<\/strong>&gt;\r\n&lt;\/div&gt;<\/pre>\n<h2>\u753b\u50cf\u3092\u9001\u4fe1\u3059\u308b\u90e8\u5206<\/h2>\n<p>\u9078\u629e\u3055\u308c\u305f\u753b\u50cf\u3092Ajax\u3067\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b<code>axios<\/code>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=5195\">\u524d\u56de\u8a18\u4e8b<\/a>\u3068\u540c\u69d8\u306b<code>FormData<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u901a\u5e38\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u306f\u9001\u4fe1\u3067\u304d\u307e\u305b\u3093\uff09<\/p>\n<p>\u306a\u304a\u3001\u753b\u50cf\u3092\u9001\u4fe1\u3057gif\u30a2\u30cb\u30e1\u306e\u4f5c\u6210\u304c\u6210\u529f\u3057\u305f\u3089<code>json<\/code>\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u304c\u8fd4\u3063\u3066\u304f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>{<\/strong>\r\n<strong>    \"result\": true,<\/strong>\r\n<strong>    \"gif_url\": \"\uff08gif\u30a2\u30cb\u30e1\u306eURL\uff09\"<\/strong>\r\n<strong>}<\/strong><\/pre>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u307e\u305a\u306f\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u753b\u50cf\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5215\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_2.png\" alt=\"\" width=\"580\" height=\"122\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_2.png 580w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_2-300x63.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u9078\u629e\u3055\u308c\u305f\u753b\u50cf\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u9001\u4fe1\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-5216\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_3.png\" alt=\"\" width=\"565\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_3.png 565w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_3-300x283.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u4f5c\u6210\u3055\u308c\u305fgif\u30a2\u30cb\u30e1\u304c\u30dc\u30bf\u30f3\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5217\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_4.png\" alt=\"\" width=\"534\" height=\"404\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_4.png 534w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_gif_4-300x227.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p>\u5b9f\u969b\u306b\u4f5c\u6210\u3055\u308c\u305f\u753b\u50cf\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5205\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/animated_samurai_rabbit.gif\" alt=\"\" width=\"370\" height=\"290\" \/><\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\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\u30d5\u30a9\u30eb\u30c0\u3084\u9001\u4fe1\u3059\u308b\u753b\u50cf\u306e\u7528\u610f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306f\u3054\u81ea\u8eab\u3067\u884c\u3063\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=5219&amp;tmstv=1777526404\" rel=\"nofollow\" id=\"download-link-5219\" data-redirect=\"false\" >\n\tLaravel\u3067gif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b<\/a>\n\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f<code>Larave<\/code> + <code>Vue<\/code>\u3067gif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u610f\u5916\u3068\u7c21\u5358\u306b\u3044\u308d\u3044\u308d\u306a\u6a5f\u80fd\u304c\u5b9f\u88c5\u3067\u304d\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3082\u3089\u3048\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>JavaScript<\/code>\u306e\u65b0\u3057\u3044\u66f8\u304d\u65b9\u3001<code>Promise<\/code>\u3084<code>[].forEach.call()<\/code>\u306f\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<code>IE 11<\/code>\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3069\u3093\u3069\u3093IE\u306f\u904e\u53bb\u306e\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u308b\uff08<code>Edge<\/code>\u306f<code>Chrome<\/code>\u30d9\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3057\u306d\ud83d\ude0a\uff09\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u306f\u4e3b\u6d41\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>JavaScript<\/code>\u306f\u30d6\u30e9\u30a6\u30b6\u3060\u3051\u3067\u306a\u304f<code>nodejs<\/code>\u3068\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u958b\u767a\u306b\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u3046\u3044\u3063\u305f\u90e8\u5206\u3067\u3082\u899a\u3048\u3066\u304a\u3044\u3066\u640d\u306f\u3057\u306a\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u4eca\u56de\u306e\u5185\u5bb9\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u266a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2158 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/29.png\" alt=\"\" width=\"170\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/29.png 170w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/29-159x300.png 159w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8bLaravel\u3067webp\u5f62\u5f0f\u306e\u753b\u50cf\u3092\u3064\u304f\u308b\uff06\u4f7f\u3046\u3067\u306fwebp\u3068\u3044\u3046Google\u304c\u958b\u767a\u3057\u305f\u65b0\u3057\u3044\uff06\u8efd\u91cf\u306a\u753b\u50cf\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u305d\u3057\u3066\u3001\u3053\u306e\u753b &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=5204\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u610f\u5916\u3068\u7c21\u5358\uff01Laravel\u3067gif\u30a2\u30cb\u30e1\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":5224,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[113,83],"class_list":["post-5204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js","tag-gif","tag-83"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5204","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=5204"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5204\/revisions"}],"predecessor-version":[{"id":5225,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5204\/revisions\/5225"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/5224"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}