File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
src/Illuminate/Filesystem Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -325,19 +325,6 @@ public function set($name, $disk)
325
325
$ this ->disks [$ name ] = $ disk ;
326
326
}
327
327
328
- /**
329
- * Unset the given disks instances.
330
- *
331
- * @param array $names
332
- * @return void
333
- */
334
- public function unset ($ names )
335
- {
336
- foreach ($ names as $ name ) {
337
- unset($ this ->disks [$ name ]);
338
- }
339
- }
340
-
341
328
/**
342
329
* Get the filesystem connection configuration.
343
330
*
@@ -369,6 +356,21 @@ public function getDefaultCloudDriver()
369
356
return $ this ->app ['config ' ]['filesystems.cloud ' ];
370
357
}
371
358
359
+ /**
360
+ * Unset the given disk instances.
361
+ *
362
+ * @param array|string $disk
363
+ * @return $this
364
+ */
365
+ public function forgetDisk ($ disk )
366
+ {
367
+ foreach ((array ) $ disk as $ diskName ) {
368
+ unset($ this ->disks [$ diskName ]);
369
+ }
370
+
371
+ return $ this ;
372
+ }
373
+
372
374
/**
373
375
* Register a custom driver creator Closure.
374
376
*
You can’t perform that action at this time.
0 commit comments