first commit

This commit is contained in:
René Preuß committed 2021-07-19 20:55:01 +02:00
commit f42347aa99
33 files changed
+8074

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Providers;
use App\FtpAdapter;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Filesystem;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Storage::extend('ftp', function ($app, $config) {
return new Filesystem(new FtpAdapter($config));
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}