From e81859f9b9c3028bbe3165348a65424af075b55b Mon Sep 17 00:00:00 2001 From: A1Gard Date: Mon, 5 Feb 2024 02:43:03 +0330 Subject: [PATCH] fixed bug gthumb | ithumb --- src/Models/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/Image.php b/src/Models/Image.php index 188deda..c378057 100755 --- a/src/Models/Image.php +++ b/src/Models/Image.php @@ -41,7 +41,7 @@ class Image extends Model implements HasMedia use InteractsWithMedia, HasTranslations; - public $translatable = ['title']; + public $translatable = ['title','description']; protected $guarded = []; @@ -71,7 +71,7 @@ public function registerMediaConversions(Media $media = null): void public function imgurl() { if ($this->getMedia()->count() > 0) { - return $this->getMedia()->first()->getUrl('ithumb'); + return $this->getMedia()->first()->getUrl('gthumb'); } else { return "no image"; }