More Product Model optimisation
This commit is contained in:
@@ -10,7 +10,7 @@ class ProductTranslate extends Model
|
||||
|
||||
public $timestamps = FALSE;
|
||||
|
||||
public function getDescriptionAttribute(string $val): string
|
||||
public function getDescriptionAttribute(?string $val): string
|
||||
{
|
||||
return $val ?: 'No Description';
|
||||
}
|
||||
|
Reference in New Issue
Block a user