Skip to content

Commit

Permalink
fixed bug description
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Feb 4, 2024
1 parent e81859f commit 207cafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Gallery extends Model implements HasMedia
use InteractsWithMedia,HasTranslations;


public $translatable = ['title'];
public $translatable = ['title','description'];
public function images()
{
return $this->hasMany(Image::class, 'gallery_id', 'id')->orderBy('sort')->orderByDesc('id');
Expand Down
2 changes: 1 addition & 1 deletion 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','description'];
public $translatable = ['title'];

protected $guarded = [];

Expand Down

0 comments on commit 207cafd

Please sign in to comment.