新车详情、删除

This commit is contained in:
2025-05-22 10:59:47 +08:00
parent 80b6ea2076
commit d9423e9bce
6 changed files with 178 additions and 14 deletions
+5 -1
View File
@@ -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',
];
}