Product Model optimisation
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user