Skip to content

Commit

Permalink
Update File.php
Browse files Browse the repository at this point in the history
Fix: Attributes error case
  • Loading branch information
ThePlatinum authored Jun 2, 2023
1 parent b3a4b22 commit c091eae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function getRealSizeAttribute(): ?string
if ($this->path) {
return ReadableValue::realSize($this->size);
}

return '';
}

/**
Expand All @@ -34,6 +36,8 @@ public function getUrlAttribute(): ?string
if ($this->path) {
return Storage::url($this->path);
}

return '';
}

/**
Expand Down

0 comments on commit c091eae

Please sign in to comment.