From be7fb3c519caee57ce5d97783272ad067f2f1ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Thu, 8 Mar 2018 18:28:51 +0900 Subject: [PATCH] FTP stuff. --- .env.example | 6 ++++++ config/filesystems.php | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/.env.example b/.env.example index 6346066..eb5ea42 100644 --- a/.env.example +++ b/.env.example @@ -14,6 +14,12 @@ DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret +FTP_HOST=ftp.example.com +FTP_USER=username +FTP_PASS=password +FTP_PORT=21 +FTP_SSL=false + BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file diff --git a/config/filesystems.php b/config/filesystems.php index 9568e02..bb02150 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -43,6 +43,16 @@ return [ 'disks' => [ + 'ftp' => [ + 'driver' => 'ftp', + 'host' => env('FTP_HOST'), + 'username' => env('FTP_USER'), + 'password' => env('FTP_PASS'), + 'port' => env('FTP_PORT'), + 'ssl' => env('FTP_SSL'), + 'root' => storage_path('app/public/store'), + ], + 'local' => [ 'driver' => 'local', 'root' => storage_path('app'),