模型优化

This commit is contained in:
Aether
2025-09-28 16:15:46 +08:00
parent 7bccb0e9fe
commit 1fc9d85ff0
2 changed files with 3 additions and 211 deletions

View File

@@ -59,7 +59,6 @@ class Campus extends AetherModel
/**
* 获取父级校区.
* @return BelongsTo
*/
public function parent(): BelongsTo
{
@@ -110,7 +109,6 @@ class Campus extends AetherModel
/**
* 获取校区下的老师.
* @return HasMany
*/
public function teachers(): HasMany
{
@@ -118,5 +116,4 @@ class Campus extends AetherModel
->where('status', 1)
->whereNull('deleted_at');
}
}