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