This commit is contained in:
2025-06-12 10:01:10 +08:00
parent 4d724c7a6d
commit ad53965622
2 changed files with 2 additions and 2 deletions
@@ -47,7 +47,7 @@ class VehicleNewTranslationModel extends Model
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'vehicle_id', 'locale', 'name', 'condition_desc', 'location', 'created_at', 'updated_at'];
protected $fillable = ['id', 'vehicle_id', 'locale', 'name', 'cover_alt', 'condition_desc', 'location', 'created_at', 'updated_at'];
/**
* 不允许自动填充模型字段
+1 -1
View File
@@ -98,7 +98,7 @@ class VehicleNewService extends BaseService
// 声明需要多语言翻译
protected array $translatable = [
'condition_desc','name',
'condition_desc','name','cover_alt',
];
public function add(array $params)