diff --git a/app/Models/Category.php b/app/Models/Category.php index e2c4219..b2bf1f5 100755 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -147,7 +147,7 @@ class Category extends Model public function getImage(): string { if (!in_array($this->image, ['null', null])) { - if (Str::startsWith($this->image, 'uploads/categories/')) { + if (Str::startsWith($this->image, 'uploads/categories/') && file_exists(public_path($this->image))) { return asset($this->image); }