|
@@ -4,7 +4,8 @@ namespace App\Providers;
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
-use League\Flysystem\Filesystem;
|
|
|
+use Illuminate\Filesystem\FilesystemAdapter;
|
|
|
+use League\Flysystem\FilesystemOperator;
|
|
|
use League\Flysystem\Local\LocalFilesystemAdapter;
|
|
|
|
|
|
class FileSystemServiceProvider extends ServiceProvider
|
|
@@ -18,10 +19,10 @@ class FileSystemServiceProvider extends ServiceProvider
|
|
|
$config['root'] ?? ''
|
|
|
);
|
|
|
|
|
|
- return new class($adapter, $config) extends Filesystem {
|
|
|
+ return new class($adapter, $config) extends FilesystemAdapter {
|
|
|
protected $config;
|
|
|
|
|
|
- public function __construct($adapter, $config)
|
|
|
+ public function __construct(FilesystemOperator $adapter, $config)
|
|
|
{
|
|
|
parent::__construct($adapter);
|
|
|
$this->config = $config;
|