我想使用Laravel中的ftpd Adapter来访问Synology NAS,它似乎需要这个特定的适配器https://github.com/thephpleague/flysystem/issues/305,但我得到了错误
Driver [Ftpd] is not supported.文件就在那里:
vendor/league/flysystem/src/Adapter/Ftpd.php我需要注册任何我可以使用它的东西吗?
我尝试在filesystems.php中使用它,如下所示
'diskstation' => [
'driver' => 'Ftpd',
'host' => 'ftp.domain.com',
'username' => '****',
'password' => '****',
// Optional FTP Settings...
'port' => 21,
'root' => '',
'passive' => true,
'ssl' => false,
'timeout' => 10,
],发布于 2017-02-28 07:33:00
看起来laravel不支持开箱即用的ftpd,你可以在这里看到:
https://github.com/laravel/framework/blob/5.4/src/Illuminate/Filesystem/FilesystemManager.php#L13
它导入了一些Flysystem驱动程序,但不是ftpd驱动程序。
但是,您可以创建自定义驱动程序,如here in the docs所示。ftpd驱动已经为flysystem构建好了,所以你只需要通过这种方法把它导入到laravel中即可。
https://stackoverflow.com/questions/42493880
复制相似问题