项目相关优化

This commit is contained in:
2025-05-08 13:28:56 +08:00
parent e68c2dc663
commit 8ea4f2bafd
5 changed files with 48 additions and 15 deletions

View File

@@ -62,15 +62,6 @@ class ProjectModel extends BaseModel
return $this->belongsToMany(FrameworkModel::class, 'project_frameworks_relations', 'project_id', 'framework_id');
}
/**
* 技术栈关联
* @return BelongsToMany
*/
public function technologyStacks(): BelongsToMany
{
return $this->belongsToMany(TechnologyStackModel::class, 'project_technology_stacks_relations', 'project_id', 'technology_stacks_id');
}
/**
* 功能关联
* @return HasMany