File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
use Illuminate \Support \Facades \Storage ;
8
8
use Illuminate \Support \ServiceProvider ;
9
9
use League \Flysystem \Filesystem ;
10
+ use Illuminate \Filesystem \FilesystemAdapter ;
10
11
use CloudinaryLabs \CloudinaryLaravel \Commands \BackupFilesCommand ;
11
12
use CloudinaryLabs \CloudinaryLaravel \Commands \DeleteFilesCommand ;
12
13
use CloudinaryLabs \CloudinaryLaravel \Commands \FetchFilesCommand ;
@@ -160,7 +161,14 @@ protected function bootCloudinaryDriver()
160
161
Storage::extend (
161
162
'cloudinary ' ,
162
163
function ($ app , $ config ) {
163
- return new Filesystem (new CloudinaryAdapter (config ('cloudinary.cloud_url ' )));
164
+
165
+ $ cloudinaryAdapter = new CloudinaryAdapter (config ('cloudinary.cloud_url ' ));
166
+
167
+ return new FilesystemAdapter (
168
+ new Filesystem ($ cloudinaryAdapter , $ config ),
169
+ $ cloudinaryAdapter ,
170
+ $ config
171
+ );
164
172
}
165
173
);
166
174
}
You can’t perform that action at this time.
0 commit comments