Skip to content

Commit

Permalink
fixed bug gthumb | ithumb
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Feb 4, 2024
1 parent d0d9292 commit e81859f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Image extends Model implements HasMedia
use InteractsWithMedia, HasTranslations;


public $translatable = ['title'];
public $translatable = ['title','description'];

protected $guarded = [];

Expand Down Expand Up @@ -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";
}
Expand Down

0 comments on commit e81859f

Please sign in to comment.