1
This commit is contained in:
@@ -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'];
|
||||
|
||||
/**
|
||||
* 不允许自动填充模型字段
|
||||
|
||||
@@ -98,7 +98,7 @@ class VehicleNewService extends BaseService
|
||||
|
||||
// 声明需要多语言翻译
|
||||
protected array $translatable = [
|
||||
'condition_desc','name',
|
||||
'condition_desc','name','cover_alt',
|
||||
];
|
||||
|
||||
public function add(array $params)
|
||||
|
||||
Reference in New Issue
Block a user