formatting
This commit is contained in:
parent
e6f34d8089
commit
528bc88ede
@ -94,13 +94,9 @@ trait Uploads
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = $media->basename;
|
$path = $media->getDiskPath();
|
||||||
|
|
||||||
if (!empty($media->directory)) {
|
if (Storage::missing($path)) {
|
||||||
$path = $media->directory . '/' . $media->basename;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Storage::exists($path)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user