first commit

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

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()
{
//
}
}