diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 10a04bc16aa8..9fb8a45dc0aa 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -192,6 +192,10 @@ public function createLocalDriver(array $config) */ public function createFtpDriver(array $config) { + if (! isset($config['root'])) { + $config['root'] = ''; + } + $adapter = new FtpAdapter(FtpConnectionOptions::fromArray($config)); return new FilesystemAdapter($this->createFlysystem($adapter, $config), $adapter, $config);