better handling of storage exists
This commit is contained in:
@@ -1009,7 +1009,11 @@ class Media extends Model
|
||||
$storage = 'private';
|
||||
}
|
||||
} else {
|
||||
if(Storage::has($storage) === false) {
|
||||
try {
|
||||
if(Storage::disk($storage)->exists('') === false) {
|
||||
return Media::STORAGE_NOT_FOUND;
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
return Media::STORAGE_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user