{"id":2763,"date":"2018-12-06T03:35:57","date_gmt":"2018-12-05T18:35:57","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=2763"},"modified":"2018-12-06T03:35:57","modified_gmt":"2018-12-05T18:35:57","slug":"laravel-%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e5%a4%96%e9%83%a8%e3%82%b9%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b8%ef%bc%88sftp%ef%bc%89%e3%81%b8%e4%bf%9d%e5%ad%98%e3%83%bb%e5%8f%96","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=2763","title":{"rendered":"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"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306fPHP\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u306f\u307b\u307c\u738b\u9053\u306e\u9078\u629e\u80a2\u3068\u3044\u3063\u305f\u96f0\u56f2\u6c17\u3059\u3089\u6301\u3061\u59cb\u3081\u3066\u3044\u308b\u3088\u3046\u306b\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001\u3084\u306f\u308aLaravel\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u70b9\u3067\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3089\u306a\u306e\u3067\u3059\u304c\u3001\u5b9f\u306fLaravel\u306b\u306f\u5358\u4f53\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u305f\u3081\u306e\u30b7\u30b9\u30c6\u30e0\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u3084\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u9023\u643a\u3059\u308b\u6a5f\u80fd\u3082\u6301\u3063\u3066\u3044\u308b\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30b5\u30a4\u30c8\u304c\u5927\u898f\u6a21\u306b\u306a\u3063\u3066\u304d\u305f\u5834\u5408\u306b\u3057\u3070\u3057\u3070\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u300c\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u300d\u3067\u3059\u3002\u3061\u3087\u3063\u3068\u8a00\u8449\u306f\u96e3\u3057\u3044\u3067\u3059\u304c\u3001\u7c21\u5358\u306b\u3044\u3046\u3068<strong>\u300c\u30d5\u30a1\u30a4\u30eb\u306f\u5225\u30b5\u30fc\u30d0\u30fc\u3067\u7ba1\u7406\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u306d\u300d<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u3001\u5927\u5bb9\u91cf\u3067\u3082\u6bd4\u8f03\u7684\u5b89\u4fa1\u306b\u5229\u7528\u3067\u304d\u308bHDD\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001\u3082\u3057\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u5bb9\u91cf\u3092\u5897\u3084\u3057\u305f\u304f\u306a\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u672c\u30b5\u30a4\u30c8\u81ea\u4f53\u3092\u79fb\u8ee2\u3059\u308b\u3053\u3068\u306a\u304f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3060\u3051\u3092\u79fb\u8ee2\u3055\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u672c\u30b5\u30a4\u30c8\u3068\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u305d\u308c\u305e\u308c\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b7\u30b9\u30c6\u30e0\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fSFTP\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u7ba1\u7406\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2597 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png\" alt=\"\" width=\"275\" height=\"350\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png 275w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2-236x300.png 236w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/p>\n<p>\u203b \u5b9f\u884c\u74b0\u5883\uff1a Laravel 5.7<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>Laravel\u3067SFTP\u3092\u4f7f\u3046\u306b\u306f <a href=\"https:\/\/github.com\/thephpleague\/flysystem-sftp\" target=\"_blank\" rel=\"noopener\">league\/flysystem-sftp<\/a> \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>composer require league\/flysystem-sftp:~1.0<\/pre>\n<p>\u203b \u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fLaravel\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u306e\u3067<code>ServiceProvider<\/code>\u306a\u3069\u3092\u767b\u9332\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h1>\u30b3\u30f3\u30d5\u30a3\u30b0\u306bSFTP\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/h1>\n<p>\u3067\u306f<code>config\/filesystems.php<\/code>\u3092\u958b\u3044\u3066STFP\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>'disks' =&gt; [\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>'sftp' =&gt; [<\/strong>\r\n<strong>        'driver' =&gt; 'sftp',<\/strong>\r\n<strong>        'host' =&gt; '***.***.***.***',<\/strong>\r\n<strong>        'username' =&gt; '\uff08\u30e6\u30fc\u30b6\u30fc\u540d\uff09',<\/strong>\r\n<strong>        'password' =&gt; '\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\uff09',<\/strong>\r\n<strong>        'privateKey' =&gt; '\uff08\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\u3078\u306e\u30d1\u30b9\uff09',<\/strong>\r\n<strong>        'port' =&gt; 22,<\/strong>\r\n<strong>        'root' =&gt; '\/home\/username\/storage',<\/strong>\r\n<strong>        'timeout' =&gt; 30,<\/strong>\r\n<strong>    ],<\/strong>\r\n\r\n],<\/pre>\n<p>\u5404\u9805\u76ee\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>driver\u3000\u30fb\u30fb\u30fb\u3000\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30c9\u30e9\u30a4\u30d0\u30fc\u540d\u3002<\/li>\n<li>host\u3000\u30fb\u30fb\u30fb\u3000\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3001\u3082\u3057\u304f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3002<\/li>\n<li>username\u3000\u30fb\u30fb\u30fb\u3000\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3002<\/li>\n<li>password\u3000\u30fb\u30fb\u30fb\u3000\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3002<\/li>\n<li>privateKey\u3000\u30fb\u30fb\u30fb\u3000\u9375\u8a8d\u8a3c\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\uff08\u30d5\u30a1\u30a4\u30eb\uff09\u3078\u306e\u30d1\u30b9\u3002\u7701\u7565\u53ef\u3002<\/li>\n<li>port\u3000\u30fb\u30fb\u30fb\u3000\u63a5\u7d9a\u3059\u308b\u30dd\u30fc\u30c8\u756a\u53f7\u3002\u7701\u7565\u53ef\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff1a 22\uff09\u3002<\/li>\n<li>root\u3000\u30fb\u30fb\u30fb\u3000\u63a5\u7d9a\u5f8c\u306b\u30d9\u30fc\u30b9\u306b\u306a\u308b\u30d1\u30b9\u3002\u7701\u7565\u53ef\u3002<\/li>\n<li>timeout\u3000\u30fb\u30fb\u30fb\u3000\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u307e\u3067\u306e\u6642\u9593\u3002<\/li>\n<\/ul>\n<p>\u6e96\u5099\u306f\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001<code>privateKey<\/code>\u3067\u3059\u304c\u5f62\u5f0f\u304c\u5408\u308f\u306a\u3044\u306a\u3069\u306e\u7406\u7531\u3067\u63a5\u7d9a\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u305d\u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306b<code>privateKey<\/code>\u306f\u524a\u9664\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3060\u3051\u3067\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>'sftp' =&gt; [\r\n    'driver' =&gt; 'sftp',\r\n    'host' =&gt; '***.***.***.***',\r\n    'username' =&gt; '\uff08\u30e6\u30fc\u30b6\u30fc\u540d\uff09',\r\n    'password' =&gt; '\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\uff09',\r\n    <strong>\/\/ 'privateKey' =&gt; '\uff08\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\u3078\u306e\u30d1\u30b9\uff09'<\/strong>\r\n],<\/pre>\n<h1>\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u4fdd\u5b58<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u300c\u30c6\u30b9\u30c8\u6587\u5b57\u5217\u300d\u3068\u3044\u3046\u30c7\u30fc\u30bf\u306e<code>test.txt<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>\\Storage::disk('sftp')-&gt;put('test.txt', '\u30c6\u30b9\u30c8\u6587\u5b57\u5217');<\/strong><\/pre>\n<p>SSH\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2765\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_2.png\" alt=\"\" width=\"304\" height=\"58\" \/><\/p>\n<p>\u4e8b\u524d\u306b\u5b9f\u884c\u3057\u305f<code>ls<\/code>\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u5b9f\u884c\u5f8c\u306f<code>test.txt<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2767\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_3.png\" alt=\"\" width=\"126\" height=\"22\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b\u3068\u6587\u5b57\u5217\u3082\u6b63\u3057\u304f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u6b21\u306b\u3059\u3067\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u4fdd\u5b58\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>use Illuminate\\Http\\File;\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>$file = new File(storage_path('app\/images\/test.png'));<\/strong>\r\n\\Storage::disk('sftp')-&gt;<strong>putFile('', $file)<\/strong>;<\/pre>\n<p>\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2768\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_4.png\" alt=\"\" width=\"496\" height=\"24\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_4.png 496w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_4-300x15.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c<code>putFile()<\/code>\u306e\u5834\u5408\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u306a\u308b\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3082\u3057\u4fdd\u5b58\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u540d\uff08\u5b9f\u969b\u306b\u306f\u30d1\u30b9\uff09\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u8fd4\u308a\u5024\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>$filename<\/strong> = \\Storage::disk('sftp')-&gt;putFile('images', $file);<\/pre>\n<p>\u307e\u305f\u3001\u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u3067\u4e0b\u5c64\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u308a\u3001\u305d\u306e\u4e2d\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u7b2c\uff11\u5f15\u6570\u306b\u968e\u5c64\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;putFile(<strong>'images\/profile'<\/strong>, $file);<\/pre>\n<p>\u3053\u308c\u3067\u3001<code>\/\uff08\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\uff09\/images\/profile\/******<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/h2>\n<p>\u5148\u307b\u3069\u306e\u4f8b\u306f\u30e9\u30f3\u30c0\u30e0\u306a\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u304c\u3001\u3082\u3061\u308d\u3093\u81ea\u5206\u3067\u540d\u524d\u3092\u3064\u3051\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306f<code>putFileAs()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>use Illuminate\\Http\\File;\r\n\r\n\/\/ \u7701\u7565\r\n\r\n$file = new File(storage_path('app\/images\/test.png'));\r\n\\Storage::disk('sftp')-&gt;<strong>putFileAs('images\/profile', $file, 'xxx.png')<\/strong>;<\/pre>\n<p>\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u305f\u3082\u306e\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2772\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_5.png\" alt=\"\" width=\"312\" height=\"42\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_5.png 312w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_5-300x40.png 300w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/p>\n<p>\u203b \u306a\u304a\u3001\u7b2c\uff11\u5f15\u6570\u306f\u5148\u307b\u3069\u3068\u540c\u3058\u304f\u968e\u5c64\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u8fd4\u308a\u5024\u306f\u30d5\u30a1\u30a4\u30eb\u540d\uff08\u30d1\u30b9\uff09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30d5\u30a1\u30a4\u30eb\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u300c\u30c6\u30b9\u30c8\u6587\u5b57\u5217\u300d\u3068\u3044\u3046\u30c7\u30fc\u30bf\u3092\u6301\u3063\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u4fdd\u5b58\u3057\u3066\u3042\u308a\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u3001\u3082\u3057\u304f\u306f\u6700\u5f8c\u306b\u65b0\u3057\u304f\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>prepend('test.txt', '\u5148\u982d\u306b\u8ffd\u52a0')<\/strong>;\r\n\\Storage::disk('sftp')-&gt;<strong>append('test.txt', '\u6700\u5f8c\u306b\u8ffd\u52a0')<\/strong>;<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u5185\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2774\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_6.png\" alt=\"\" width=\"127\" height=\"67\" \/><\/p>\n<p>\u203b \u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u30ed\u30b0\u3092\u4fdd\u5b58\u3059\u308b\u306a\u3069\u306b\u4f7f\u3046\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u4fdd\u5b58\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u9001\u4fe1\u3057\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u306f\u306a\u304f\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u4fdd\u5b58\u3059\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>&lt;form method=\"POST\" action=\"sftp_upload\" enctype=\"multipart\/form-data\"&gt;\r\n    @csrf\r\n    &lt;input type=\"file\" name=\"<strong>profile_photo<\/strong>\"&gt;\r\n    &lt;button type=\"submit\"&gt;\u9001\u4fe1&lt;\/button&gt;\r\n&lt;\/form&gt;<\/pre>\n<p>\u3053\u306e\u5834\u5408\u30d5\u30a1\u30a4\u30eb\u30c7\u30fc\u30bf\u3092<code>$request<\/code>\u304b\u3089\u53d6\u5f97\u3057\u3066<code>sftp<\/code>\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>public function sftp_upload(<strong>Request $request<\/strong>) {\r\n\r\n    $file = <strong>$request-&gt;file('profile_photo')<\/strong>;\r\n    \\Storage::disk('sftp')-&gt;<strong>putFile('images\/profile', $file)<\/strong>;\r\n    \\Storage::disk('sftp')-&gt;<strong>putFileAs('images\/profile', $file, 'xxx.png')<\/strong>;\r\n\r\n}<\/pre>\n<p>\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u305f\u3082\u306e\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2775\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_7.png\" alt=\"\" width=\"493\" height=\"27\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_7.png 493w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_7-300x16.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/p>\n<h1>\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u3059\u3067\u306b\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b<code>test.txt<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u3066\u3001\u305d\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u300c\u4e2d\u8eab\u300d\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>$text = \\Storage::disk('sftp')-&gt;<strong>get('test.txt')<\/strong>;<\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001<code>$text<\/code>\u306e\u4e2d\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u304c\u5165\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u3082\u3057\u753b\u50cf\u3092<code>dataURL<\/code>\u306b\u3057\u3066\u30a4\u30f3\u30e9\u30a4\u30f3\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u5909\u63db\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>$image<\/strong> = \\Storage::disk('sftp')-&gt;get('images\/profile\/xxx.png');\r\n<strong>$data = 'data: image\/png;base64,'. base64_encode($image);<\/strong>\r\necho '&lt;img src=\"'. <strong>$data<\/strong> .'\"&gt;';<\/pre>\n<h2>\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3042\u308b<code>test.txt<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u305f\u3044\u5834\u5408\u3067\u3059\u3002\u3053\u306e\u5834\u5408<code>download()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>return<\/strong> \\Storage::disk('sftp')-&gt;<strong>download('test.txt')<\/strong>;<\/pre>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c\u3001<code>return<\/code>\u306e\u90e8\u5206\u3067\u3059\u3002<code>download()<\/code>\u306e\u4e2d\u8eab\u306f\u30ec\u30b9\u30dd\u30f3\u30b9\u306a\u306e\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3084\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5185\u3067<code>return<\/code>\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3082\u3057\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u7b2c\uff12\u5f15\u6570\u306b\u3001\u30d8\u30c3\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u7b2c\uff13\u5f15\u6570\u3092\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>return \\Storage::disk('sftp')-&gt;download('test.txt', <strong>'new_name.txt', [<\/strong>\r\n<strong>    'Your-Header' =&gt; 'v(^o^)'<\/strong>\r\n<strong>]<\/strong>);<\/pre>\n<h1>\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<\/h1>\n<p>\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b<code>delete()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>delete('test.txt')<\/strong>;<\/pre>\n<p>\u307e\u305f\u3001\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>delete('images')<\/strong>; \/\/ \u300cimages\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664<\/pre>\n<h1>\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h1>\n<p>\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3059\u3067\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306b\u306f<code>exists()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>if(\\Storage::disk('sftp')-&gt;<strong>exists('images\/profile\/xxx.png')<\/strong>) {\r\n\r\n    echo '\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\uff01';\r\n\r\n}<\/pre>\n<p>\u307e\u305f\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u5b58\u5728\u30c1\u30a7\u30c3\u30af\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>if(\\Storage::disk('sftp')-&gt;<strong>exists('images\/profile')<\/strong>) {\r\n\r\n    echo '\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\uff01';\r\n\r\n}<\/pre>\n<h1>\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u64cd\u4f5c\u3059\u308b<\/h1>\n<h2>\u7279\u5b9a\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u540d\uff08\u30d1\u30b9\uff09\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3042\u308b<code>images\/profile<\/code>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\uff08\u5b9f\u969b\u306b\u306f\u30d1\u30b9\uff09\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>$files = \\Storage::disk('sftp')-&gt;<strong>files('images\/profile')<\/strong>;\r\ndd($files);<\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u914d\u5217\u3067\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2778\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_8.png\" alt=\"\" width=\"419\" height=\"53\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_8.png 419w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_8-300x38.png 300w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/p>\n<p>\u307e\u305f\u3001\u3082\u3057\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\uff08\u3064\u307e\u308a\u3001\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u5185\u3082\u542b\u3081\u305f\u5168\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f<code>allFiles()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>allFiles('images')<\/strong>;<\/pre>\n<p>\u4e2d\u8eab\u306f<code>files()<\/code>\u3068\u540c\u3058\u304f\u914d\u5217\u3067\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<h2>\u7279\u5b9a\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001<code>images<\/code>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u4ee5\u4e0b\uff13\u3064\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>profile<\/li>\n<li>pdf<\/li>\n<li>text<\/li>\n<\/ul>\n<p>\u3053\u306e\uff13\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u540d\uff08\u30d1\u30b9\uff09\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f<code>directories()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>$directories = \\Storage::disk('sftp')-&gt;<strong>directories('images')<\/strong>;\r\ndd($directories);<\/pre>\n<p>\u5b9f\u969b\u306b\u53d6\u5f97\u3057\u305f\u4f8b\u3067\u3059\u3002<br \/>\n<code>files()<\/code>\u3068\u540c\u3058\u304f\u914d\u5217\u3067\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2779\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/12\/laravel_sfpt_9.png\" alt=\"\" width=\"146\" height=\"67\" \/><\/p>\n<p>\u307e\u305f\u3001\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5168\u3066\u306e\u30d5\u30a9\u30eb\u30c0\uff08\u3064\u307e\u308a\u4e0b\u306e\u968e\u5c64\u3082\u542b\u3081\u305f\u30d5\u30a9\u30eb\u30c0\uff09\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f<code>allDirectories()<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>allDirectories('images')<\/strong>;<\/pre>\n<h2>\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b<code>json<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>makeDirectory('json')<\/strong>;<\/pre>\n<h2>\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3042\u308b<code>json<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>\\Storage::disk('sftp')-&gt;<strong>deleteDirectory('json')<\/strong>;<\/pre>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fsftp\u3092\u901a\u3057\u3066\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3001\u69d8\u3005\u306a\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u624b\u9806\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5fdc\u7528\u3059\u308c\u3070Laravel\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306a\u3069\u3067\u5b9a\u671f\u7684\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u4fdd\u5b58\u3055\u305b\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3057\u3001\u753b\u50cf\u3092\u6295\u7a3f\u3059\u308b\u30b5\u30a4\u30c8\u306a\u3069\u3067\u306f\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u3001\u3055\u3089\u306b\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306eURL\u304b\u3089\u76f4\u63a5\u305d\u306e\u753b\u50cf\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3001\u672c\u30b5\u30a4\u30c8\u3078\u306e\u4e0d\u53ef\u8efd\u6e1b\u306b\u8ca2\u732e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u306e\u30c6\u30af\u30cb\u30c3\u30af\u306f\u7279\u306b\u30c7\u30fc\u30bf\u5bb9\u91cf\u3092\u6c17\u306b\u3059\u308b\u3088\u3046\u306a\u30b5\u30a4\u30c8\u306b\u6709\u52b9\u3068\u8a00\u3063\u3066\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u4eca\u56de\u306e\u8a18\u4e8b\u3092\u30b5\u30a4\u30c8\u306e\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2594 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/23.png\" alt=\"\" width=\"182\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/23.png 182w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/23-171x300.png 171w\" sizes=\"auto, (max-width: 182px) 100vw, 182px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306fPHP\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u306f\u307b\u307c\u738b\u9053\u306e\u9078\u629e\u80a2\u3068\u3044\u3063\u305f\u96f0\u56f2\u6c17\u3059\u3089\u6301\u3061\u59cb\u3081\u3066\u3044\u308b\u3088\u3046\u306b\u611f\u3058\u3066\u3044\u307e\u3059\u3002 \u305d\u308c\u306f\u3001\u3084\u306f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=2763\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;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&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":2783,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[127],"class_list":["post-2763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-sftp"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2763","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=2763"}],"version-history":[{"count":8,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2763\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2763\/revisions\/2782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/2783"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}