From a28f552f96feef5521db0d02235f2c00f100c45b Mon Sep 17 00:00:00 2001 From: husanjon Date: Wed, 29 Apr 2026 13:55:41 +0500 Subject: [PATCH] category qosishsh to'g'irlandi --- app/Models/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }