Product Model optimisation

This commit is contained in:
2023-05-05 10:32:04 +10:00
parent 0f91ce4940
commit 96f799f535
13 changed files with 145 additions and 115 deletions

View File

@@ -9,4 +9,9 @@ class ProductTranslate extends Model
protected $table = 'product_translate';
public $timestamps = FALSE;
public function getDescriptionAttribute(string $val): string
{
return $val ?: 'No Description';
}
}