新车详情、删除
This commit is contained in:
@@ -47,7 +47,7 @@ class VehicleNewAlbumModel extends Model
|
||||
/**
|
||||
* 允许自动填充模型字段
|
||||
*/
|
||||
protected $fillable = ['id', 'vehicle_id', 'status', 'sort', 'created_at', 'updated_at'];
|
||||
protected $fillable = ['id', 'vehicle_id', 'pic', 'status', 'sort', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* 不允许自动填充模型字段
|
||||
@@ -69,4 +69,8 @@ class VehicleNewAlbumModel extends Model
|
||||
{
|
||||
return $this->hasMany(VehicleNewAlbumTranslationModel::class, 'album_id');
|
||||
}
|
||||
|
||||
const TRANS_FIELDS = [
|
||||
'alt',
|
||||
];
|
||||
}
|
||||
@@ -54,6 +54,9 @@ class VehicleNewModel extends Model
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
const TRANS_FIELDS = [
|
||||
'name', 'condition_desc'
|
||||
];
|
||||
|
||||
/**
|
||||
* 单条翻译
|
||||
|
||||
@@ -47,7 +47,7 @@ class VehicleNewTranslationModel extends Model
|
||||
/**
|
||||
* 允许自动填充模型字段
|
||||
*/
|
||||
protected $fillable = ['id', 'vehicle_id', 'locale', 'condition_desc', 'location', 'created_at', 'updated_at'];
|
||||
protected $fillable = ['id', 'vehicle_id', 'locale', 'name', 'condition_desc', 'location', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* 不允许自动填充模型字段
|
||||
|
||||
Reference in New Issue
Block a user