{"id":8956,"date":"2021-05-10T07:00:15","date_gmt":"2021-05-09T22:00:15","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8956"},"modified":"2021-04-28T19:16:23","modified_gmt":"2021-04-28T10:16:23","slug":"laravel-%e3%81%a7-amazon-s3-cloudfront-%e3%82%92%e4%bb%a3%e6%9b%bf%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8956","title":{"rendered":"Laravel \u3067 Amazon S3 + CloudFront \u3092\u4ee3\u66ff\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u73fe\u5728\u3067\u304d\u308b\u3060\u3051<code>AWS<\/code>\u3092\u4f53\u9a13\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4ee5\u524d\u304b\u3089\uff11\u70b9\u3060\u3051\u6c17\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3055\u3093\u306b<code>AWS<\/code>\u3092\u63d0\u6848\u3059\u308b\u3068\u300c<strong>\u304a\u3063\u3001\u30af\u30e9\u30a6\u30c9\u3067\u3059\u306d\ud83d\udc4d<\/strong>\u300d\u306b\u7d9a\u3044\u3066\u3088\u304f\u51fa\u3066\u304f\u308b\u8a00\u8449\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u300c\u3067\u3082\u3001AWS\u306f\u6599\u91d1\u304c\u5fc3\u914d\u3067\u3059\u3088\u306d\u30fb\u30fb\u30fb\u300d<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<code>AWS<\/code>\u306f\u7279\u5b9a\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u9664\u3044\u3066\u5f93\u91cf\u8ab2\u91d1\u304c\u57fa\u672c\u3067\u3059\u3057\u3001\u6599\u91d1\u304c\u7d30\u5206\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u91d1\u984d\u304c\u8aad\u307f\u306b\u304f\u3044\u3053\u3068\u3082\u7406\u7531\u306e\u3072\u3068\u3064\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u73fe\u5728\u306f\u4e00\u90e8\u3067\u300c<strong>\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u56de\u5e30\uff08\u2252\u8131\u30af\u30e9\u30a6\u30c9\uff09<\/strong>\u300d\u3068\u3044\u3046\u6d41\u308c\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u7406\u7531\u3082\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u300d\u3068\u300c\u30b3\u30b9\u30c8\u300d\u306e\uff12\u3064\u304c\u5927\u304d\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003URL\uff1a<\/strong>\u00a0<a href=\"https:\/\/www.itmedia.co.jp\/news\/articles\/2005\/04\/news002_2.html\" target=\"_blank\" rel=\"noopener\">\u6d77\u5916\u3067\u9032\u3080\u300c\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u56de\u5e30\u300d\u3000\u305d\u306e\u80cc\u666f\u306b\u4f55\u304c\u3042\u308b\u306e\u304b<\/a><\/p>\n<p>\u306a\u304a\u3001\u3055\u3089\u306b\u8a00\u3046\u3068\u500b\u4eba\u7684\u306b\u306f<code>Amazon S3 + CloundFront<\/code>\u3067\u300c<strong>\u8a31\u53ef\u306e\u3042\u308b\u4eba\u3057\u304b\u8868\u793a\u3067\u304d\u306a\u3044URL<\/strong>\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b\u3064\u3082\u308a\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3061\u3087\u3063\u3068\u8abf\u3079\u308b\u3068\u3059\u3067\u306b\u5148\u4eba\u305f\u3061\u304c\u7d20\u6674\u3089\u3057\u3044\u8a18\u4e8b\u3092\u3044\u304f\u3064\u3082\u516c\u958b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u300c\u52dd\u3066\u306a\u3044\u52dd\u8ca0\u306b\u306f\u884c\u304b\u306a\u3044\u300d\u65b9\u5f0f\u3067\u4eca\u56de\u306f\u9006\u306b\u300c\u8131\u30af\u30e9\u30a6\u30c9\u300d\u3092\u30c6\u30fc\u30de\u306b\u8a18\u4e8b\u3092\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u5225\u30b5\u30fc\u30d0\u30fc\uff08\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\uff09\u3092\u30b9\u30c8\u30ec\u30fc\u30b8\u7528\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066 <strong>Laravel\u306b\u300cS3 + CloudFront\u300d\u3092\u4ee3\u66ff\u3055\u305b\u3001\u3055\u3089\u306b\u7f72\u540d\u3064\u304dURL\u3067\u6a29\u9650\u306e\u3042\u308b\u4eba\u3060\u3051\u306b\u753b\u50cf\u3092\u8868\u793a<\/strong>\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6067 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png\" alt=\"\" width=\"314\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png 314w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19-294x300.png 294w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/>\u300c\u500b\u4eba\u7684\u306b\u306f S3 + CloudFront \u3082<br \/>\n\u4f53\u9a13\u3057\u3066\u307f\u307e\u3057\u305f\ud83d\udc4d\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x<\/p>\n<h1>\u4eca\u56de\u306e\u5b9f\u88c5\u3059\u308b\u30e1\u30ea\u30c3\u30c8\uff0f\u30c7\u30e1\u30ea\u30c3\u30c8<\/h1>\n<p>\u4eca\u56de\u306f\u300c<strong>\u8131\u30af\u30e9\u30a6\u30c9<\/strong>\u300d\u304c\u30c6\u30fc\u30de\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u30e1\u30ea\u30c3\u30c8\uff06\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u4e21\u65b9\u3042\u3063\u3066\u3084\u306f\u308a\u3054\u5e0c\u671b\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u3092\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8\u3092\u307e\u3068\u3081\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8<\/h2>\n<ul>\n<li>\u683c\u5b89\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3082OK\u306a\u306e\u3067\u30b3\u30b9\u30c8\u30c0\u30a6\u30f3\u304c\u898b\u8fbc\u3081\u308b<\/li>\n<li>\u901a\u5e38\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u6708\u984d\u3001\u5e74\u984d\u3067\u56fa\u5b9a\u306a\u306e\u3067\u6bd4\u8f03\u7684\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3089\u306a\u3044<\/li>\n<li>Laravel \u3092\u4f7f\u3048\u3070\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u30b3\u30fc\u30c9\u306f\u5fc5\u8981\u306a\u3044\uff08\u3055\u3059\u304c\u306b\u521d\u5fc3\u8005\u3067\u306f\u96e3\u3057\u3044\u304b\u3082\u3067\u3059\u304c\u30fb\u30fb\u30fb\uff09<\/li>\n<\/ul>\n<h2>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n<ul>\n<li>S3\u306e\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\uff08\u2252\u8ca0\u8377\u4e0a\u6607\u30d8\u30c3\u30c1\u30e3\u30e9\uff06\u5bb9\u91cf\u7121\u5236\u9650\uff09\u3092\u5931\u3046\u3053\u3068\u306b\u306a\u308b<\/li>\n<li>AWS Lambda \u306a\u3069\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u76f4\u63a5\u9023\u643a\u3067\u304d\u306a\u304f\u306a\u308b<\/li>\n<li>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u898f\u7d04\u306b\u3088\u3063\u3066\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u7f6e\u304d\u5834\u300d\u3068\u3057\u3066\u306e\u5229\u7528\u304c\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/li>\n<\/ul>\n<h1>\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/h1>\n<p>\u307e\u305a\u3001<code>Amazon S3 + CloudFront<\/code>\u3067\u306f\u3069\u3046\u3084\u3063\u3066\u6a29\u9650\u3064\u304d\u753b\u50cf\u516c\u958b\u3092\u3057\u3066\u3044\u308b\u304b\u3067\u3059\u304c\u3001\u30b7\u30f3\u30d7\u30eb\u8a00\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u76f4\u63a5\u30d6\u30e9\u30a6\u30b6\u304b\u3089 S3 \u306b\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/li>\n<li>\u4ee3\u308f\u308a\u306b CloudFront \u3092\u5165\u308a\u53e3\u306b\u3057\u3001\u7f72\u540d\uff08\u30c8\u30fc\u30af\u30f3\uff09\u304cOK\u306a\u3089 S3 \u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<li>\u7f72\u540d\u4ed8\u304dURL\u3092\u4f5c\u3063\u3066\u30a2\u30af\u30bb\u30b9\uff08\u6709\u52b9\u6642\u9593\u3082\u6307\u5b9aOK\uff09<\/li>\n<\/ol>\n<p>\u3064\u307e\u308a\u3001\u3053\u308c\u3068\u540c\u3058\u3053\u3068\u3092<code>Laravel<\/code>\u3067\u3084\u3063\u3066\u3084\u308c\u3070\u3044\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u306f\u300c\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u300d\u3068\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u300d\u306e\uff12\u3064\u306b\u5206\u3051\u3066\u306e\u958b\u767a\u3068\u306a\u308a\u307e\u3059\u3002\u5404\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u8a71\u3092\u9032\u3081\u307e\u3059\u304c\u3001\u9069\u5f53\u306b\u30c9\u30e1\u30a4\u30f3\u306f\u3054\u81ea\u8eab\u306e\u3082\u306e\u3068\u5165\u308c\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8<\/h2>\n<ul>\n<li>\u30c9\u30e1\u30a4\u30f3\u306f www.example.com<\/li>\n<li>\u3053\u3061\u3089\u304b\u3089 SFTP \u3092\u4f7f\u3063\u3066\u753b\u50cf\u30b5\u30fc\u30d0\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u904b\u7528\u3059\u308b<\/li>\n<\/ul>\n<h2>\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8<\/h2>\n<ul>\n<li>\u753b\u50cf\u3084\u52d5\u753b\u3092\u63d0\u4f9b\u3059\u308b\u3060\u3051\u306e\u300c\u30d5\u30a1\u30a4\u30eb\u7f6e\u304d\u5834\u300d<\/li>\n<li>\u30c9\u30e1\u30a4\u30f3\u306f storage.example.com\u3000\u203b\uff11<\/li>\n<li>\u7f72\u540d\u4ed8\u304d\u3067\u306a\u3044\u3068\u753b\u50cf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u4f5c\u696d\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u3001\u753b\u50cf\u3084\u52d5\u753b\u3092\u63d0\u4f9b\u3059\u308b\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6e96\u5099\u3059\u308b<\/h2>\n<p>\u300c\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u300d\u3068\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u300d\u306b\u306f\u305d\u308c\u305e\u308c<code>Laravel<\/code>\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u7f72\u540d\u4ed8\u304dURL\u3092\u4f7f\u3046\u306e\u3067\u3001\u6697\u53f7\u30ad\u30fc\u306f\u540c\u3058\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<code>.env<\/code>\u5185\u306e<code>APP_KEY<\/code>\u306f\uff12\u3064\u3068\u3082\u540c\u3058\u3082\u306e\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>APP_KEY=****************************<\/strong><\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u307e\u305a\u306f\u7f72\u540d\u4ed8\u304d\u3067\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308a\u307e\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 SignedImageController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/SignedImageController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass SignedImageController extends Controller\r\n{\r\n    <strong>public function show(Request $request, $filename) {<\/strong>\r\n\r\n<strong>        if($request-&gt;hasValidSignature()) { \/\/ \u8a8d\u8a3c\u6210\u529f<\/strong>\r\n\r\n<strong>            $path = storage_path('app\/signed\/images\/'. $filename);<\/strong>\r\n\r\n<strong>            if(\\File::exists($path)) {<\/strong>\r\n\r\n<strong>                return response()-&gt;file($path);<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        abort(404);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u307e\u305a\u7f72\u540d\u4ed8\u304dURL\u304c\u672c\u5f53\u306b\u59a5\u5f53\u306a\u306e\u304b\u3092<code>hasValidSignature()<\/code>\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f<code>Laravel<\/code>\u306b\u6700\u521d\u304b\u3089\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3001\u5b9f\u969b\u306b\u306f<code>URL::signedRoute()<\/code>\u3084<code>URL::emporarySignedRoute()<\/code>\u3068\u30da\u30a2\u3067\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u3061\u3083\u3093\u3068\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u898b\u3064\u304b\u3063\u305f\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u30eb\u30fc\u30c8\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Support\\Facades\\Route;\r\n<strong>use App\\Http\\Controllers\\SignedImageController;<\/strong> \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('signed')-&gt;group(function(){ \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n\r\n<strong>    Route::get('image\/{filename}', [SignedImageController::class, 'show'])-&gt;name('image.signed');<\/strong>\r\n\r\n<strong>});<\/strong>\r\n\r\nRoute::get('test\/url', function(){ \/\/ \u3053\u3053\u306f\u30c6\u30b9\u30c8URL\u3092\u3064\u304f\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\r\n\r\n    $dt = now()-&gt;addSecond(30); \/\/ \u6709\u52b9\u671f\u9650\u306f30\u79d2\u3060\u3051\r\n    return URL::temporarySignedRoute('image.signed', $dt, [\r\n        'user.png'\r\n    ]);\r\n\r\n});<\/pre>\n<p><strong>\u26a0 \u3054\u6ce8\u610f\uff1a<\/strong> \u306a\u304a\u3001\u592a\u5b57\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u65b9\u306e\u30eb\u30fc\u30c8\u306f\u30c6\u30b9\u30c8\u7528URL\u3092\u3064\u304f\u308b\u3082\u306e\u3067\u3059\u3002\u672c\u756a\u74b0\u5883\u3067\u306f\u524a\u9664\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u4f8b\u3048\u3070\u300c\/<strong>storage\/app\/signed\/images\/user.png<\/strong>\u300d\u3068\u3044\u3046\u753b\u50cf\u3092\u7528\u610f\u3057\u3001\u300c<strong>https:\/\/storage.example.com\/signed\/image\/user.png?expires=*******&amp;signature=**********<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u3068<code>404<\/code>\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c\u8fd4\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\ud83d\udc4d<\/p>\n<h1>\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<h2>\u6e96\u5099\u3059\u308b<\/h2>\n<p>\u6c4e\u7528\u7684\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u306e\u3067\u3001<code>.env<\/code>\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002URL\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<pre><strong>STORAGE_ORIGIN=http:\/\/storage.example.test<\/strong><\/pre>\n<h2>\u30b9\u30c8\u30ec\u30fc\u30b8\u7528\u30e2\u30c7\u30eb\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6b21\u306b\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u300c<strong>\u7f72\u540d\u4ed8\u304dURL<\/strong>\u300d\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u5c02\u7528\u30e2\u30c7\u30eb\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:model Storage<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Models\/Storage.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Models;\r\n\r\nuse Carbon\\Carbon;\r\n\r\nclass Storage\r\n{\r\n    <strong>public static function getSignedUrl($uri, $expiration = null) {<\/strong>\r\n\r\n<strong>        $parameters = [];<\/strong>\r\n\r\n<strong>        if($expiration) {<\/strong>\r\n\r\n<strong>            $parameters += [<\/strong>\r\n<strong>                'expires' =&gt; (new Carbon($expiration))-&gt;timestamp<\/strong>\r\n<strong>            ];<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        ksort($parameters);<\/strong>\r\n\r\n<strong>        $key = config('app.key');<\/strong>\r\n<strong>        $origin = env('STORAGE_ORIGIN');<\/strong>\r\n<strong>        $base_url = $origin .'\/signed\/'. $uri;<\/strong>\r\n<strong>        $url = $base_url;<\/strong>\r\n\r\n<strong>        if(!empty($parameters)) {<\/strong>\r\n\r\n<strong>            $url .=  '?'. http_build_query($parameters);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        $signature =  hash_hmac('sha256', $url, $key);<\/strong>\r\n<strong>        $parameters += ['signature' =&gt; $signature];<\/strong>\r\n<strong>        return $base_url .'?'. http_build_query($parameters);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u7f72\u540d\u4ed8\u304dURL\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u6709\u52b9\u671f\u9650\u306a\u3057<\/strong><\/p>\n<pre><strong>$signed_url = \\App\\Models\\Storage::getSignedUrl('image\/user.png');<\/strong><\/pre>\n<p><strong>\u6709\u52b9\u671f\u9650\u3042\u308a<\/strong><\/p>\n<pre><strong>$dt = now()-&gt;addMinutes(15);<\/strong>\r\n<strong>$signed_url = \\App\\Models\\Storage::getSignedUrl('image\/user.png', $dt);<\/strong><\/pre>\n<h2>\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u3078\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<\/h2>\n<p>\u300c\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u300d\u304b\u3089\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u300d\u3078\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f<code>SFTP<\/code>\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u3061\u3087\u3063\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3067\u3059\u304c\u57fa\u672c\u306f\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059\ud83d\udc4d\uff09<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=2763\">Laravel \u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\uff08SFTP\uff09\u3078\u4fdd\u5b58\u30fb\u53d6\u5f97\u3059\u308b\u516813\u5b9f\u4f8b<\/a><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u300c\u7f72\u540d\u4ed8\u304dURL\u300d\u3092\u30c6\u30b9\u30c8\u7684\u306b\u3064\u304f\u3063\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u306e\u753b\u50cf\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u2757<\/p>\n<p>\u5148\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30c8\u306e\u300c<strong>\/storage\/app\/signed\/images\/user.png<\/strong>\u300d\u306b\u4ee5\u4e0b\u306e\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u3082\u306e\u3068\u3057\u3066\u8a2d\u7f6e\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6068 aligncenter\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p>\u3067\u306f\u30e1\u30a4\u30f3\u30b5\u30a4\u30c8\u306b\u623b\u3063\u3066\u3001\u307e\u305a\u306f\u300c<strong>\u6709\u52b9\u671f\u9650\u306a\u3057<\/strong>\u300d\u306e\u7f72\u540dURL\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30eb\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre><strong>Route::get('signed_url', function(){<\/strong>\r\n\r\n<strong>    return \\App\\Models\\Storage::getSignedUrl('image\/user.png');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>http:\/\/www.example.com\/signed_url<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7f72\u540d\u4ed8\u304dURL\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8960\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_1.png\" alt=\"\" width=\"636\" height=\"44\" \/><\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u306eURL\u3078\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8961\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2.png\" alt=\"\" width=\"256\" height=\"351\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2.png 256w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2-219x300.png 219w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/p>\n<p>\u3046\u307e\u304f\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<p>\u3067\u306f\u3001\u3046\u307e\u304f\u7f72\u540d\u304c\u50cd\u3044\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u306bURL\u306e\u6700\u5f8c\u306e\u6587\u5b57\u3092\uff11\u3064\u3060\u3051\u524a\u9664\u3057\u3066\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\uff1f\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8962\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_3.png\" alt=\"\" width=\"243\" height=\"69\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n<code>404<\/code>\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u300c<strong>\u6709\u52b9\u671f\u9650\u3064\u304d<\/strong>\u300d\u306eURL\u3067\u3059\u3002<br \/>\n\u5148\u307b\u3069\u306e\u30eb\u30fc\u30c8\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>Route::get('signed_url', function(){\r\n\r\n<strong>    $dt = now()-&gt;addSeconds(30);<\/strong>\r\n<strong>    return \\App\\Models\\Storage::getSignedUrl('image\/user.png', $dt);<\/strong>\r\n\r\n});<\/pre>\n<p>\u540c\u3058\u304f\u300c<strong>http:\/\/www.example.com\/signed_url<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8963\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_4.png\" alt=\"\" width=\"630\" height=\"44\" \/><\/p>\n<p>\u4eca\u5ea6\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u306b<code>expires<\/code>\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3053\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8961\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2.png\" alt=\"\" width=\"256\" height=\"351\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2.png 256w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_2-219x300.png 219w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/p>\n<p>\u5148\u307b\u3069\u3068\u540c\u3058\u304f\u753b\u50cf\u304c\u3061\u3083\u3093\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306f\u6709\u52b9\u671f\u9650\u3064\u304d\u306a\u306e\u3067\u300130\u79d2\u5f85\u3063\u3066\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7d50\u679c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8962\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/04\/laravel_signed_url_3.png\" alt=\"\" width=\"243\" height=\"69\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u305f\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u5168\u3066\u6210\u529f\u3067\u3059\ud83d\ude0a\ud83d\udc4d\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u300c\u30e1\u30ea\u30c3\u30c8\u300d\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001<code>S3<\/code>\u306e\u3088\u3046\u306b\u5f93\u91cf\u8ab2\u91d1\u3067\u306f\u306a\u3044\u306e\u3067\u3044\u304f\u3089\u30a2\u30af\u30bb\u30b9\u304c\u591a\u304f\u306a\u3063\u3066\u3082<strong>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u6599\u91d1\u306e\u307f\u3067\u6e08\u307e\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/strong>\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3082\u3057\u30a2\u30af\u30bb\u30b9\u304c\u5897\u3048\u8ca0\u8377\u304c\u5897\u5927\u3057\u305f\u3068\u3057\u3066\u3082\u69cb\u9020\u7684\u306b\u306f\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u306e\u3067<code>Amazon S3<\/code>\u306b\u3082\u79fb\u884c\u3057\u3084\u3059\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u8208\u5473\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>\u8131\u30af\u30e9\u30a6\u30c9<\/strong>\u300d\u3092\u30c6\u30fc\u30de\u306b\u3057\u3066\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5f53\u521d\u306f\u7f72\u540d\u8a8d\u8a3c\u306f<code>hash_equals()<\/code>\u3092\u4f7f\u3046\u3064\u3082\u308a\u3067\u3057\u305f\u304c\u3001\u3059\u3067\u306b<code>Laravel<\/code>\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u9a5a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306e\u8a71\u3068\u306f\u5225\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30eb\u30fc\u30c8\u540d\u3092\u4f7f\u3063\u3066\u81ea\u52d5\u7684\u306b\u7f72\u540d\u4ed8\u304dURL\u3092\u3064\u304f\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4f8b\u3048\u3070\u30e1\u30fc\u30eb\u306b\u6709\u52b9\u671f\u9650\u304c\u3042\u308b\u7f72\u540d\u4ed8\u304dURL\u3092\u542b\u3081\u3066\u9001\u4fe1\u3057\u3001\u300c<strong>\u3042\u308b\u4e00\u5b9a\u671f\u9593\u3060\u3051\u5fdc\u52df\u3067\u304d\u307e\u3059\u300d<\/strong>\u307f\u305f\u3044\u306a\u3053\u3068\u3082\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3055\u3059\u304c<code>Laravel<\/code>\u3067\u3059\ud83d\udc4d<\/p>\n<p>\u3067\u306f\u3001\u8131\u30af\u30e9\u30a6\u30c9\u304c\u3069\u308c\u3060\u3051\u9032\u3080\u304b\u306f\u5168\u304f\u672a\u77e5\u6570\u3067\u3059\u304c\u3053\u306e\u5206\u91ce\u3082\u6ce8\u76ee\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\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-6070 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png\" alt=\"\" width=\"260\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png 260w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5-244x300.png 244w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/>\u300cLED\u30e9\u30a4\u30c8\u304c\u6795\u306e\u3059\u3050\u8fd1\u304f\u306b\u3042\u308b\u306e\u3067<br \/>\n\u30ce\u30a4\u30ba\u304c\u30a8\u30b0\u3044\u3067\u3059\ud83d\ude2b\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u73fe\u5728\u3067\u304d\u308b\u3060\u3051AWS\u3092\u4f53\u9a13\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4ee5\u524d\u304b\u3089\uff11\u70b9\u3060\u3051\u6c17\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u3053\u308c\u307e\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3055\u3093\u306bAWS\u3092\u63d0\u6848\u3059\u308b\u3068\u300c\u304a\u3063\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8956\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067 Amazon S3 + CloudFront \u3092\u4ee3\u66ff\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8971,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233,3],"tags":[],"class_list":["post-8956","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8956","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=8956"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8956\/revisions"}],"predecessor-version":[{"id":8974,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8956\/revisions\/8974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8971"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}