Add feature tests for Document, FastRequest, FileStorage, Shift, and SMS services
This commit is contained in:
@@ -49,7 +49,7 @@ class FileStorageService
|
||||
$new = Storage::disk($newDisk);
|
||||
|
||||
$stream = $old->readStream($medium->path);
|
||||
if ($stream === false) return false;
|
||||
if (! is_resource($stream)) return false;
|
||||
|
||||
$new->put($medium->path, $stream);
|
||||
if (is_resource($stream)) fclose($stream);
|
||||
|
||||
Reference in New Issue
Block a user