updated uploading store

This commit is contained in:
franknstayn
2021-07-19 17:15:58 +08:00
parent 8ddfee5d85
commit febadd87ce
8 changed files with 242 additions and 7 deletions

View File

@@ -3,6 +3,9 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Storage;
use League\Flysystem\Filesystem;
use League\Flysystem\Sftp\SftpAdapter;
class AppServiceProvider extends ServiceProvider
{
@@ -14,6 +17,10 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
//
Storage::extend('sftp', function ($app, $config) {
return new Filesystem(new SftpAdapter($config));
});
}
/**