feat : admin driver name

This commit is contained in:
2024-11-11 13:06:07 +08:00
parent 3aba37d426
commit b64d2872ac
10 changed files with 153 additions and 6 deletions

View File

@@ -81,4 +81,17 @@ class AdminSection extends Model
{
return $this->where('id',$id)->value('city_id') ?? 0;
}
/**
* @param int $cityId
* @return array
*/
public function getIdsByCityId(int $cityId): array
{
return $this
->where('city_id',$cityId)
->where('status',AuthCode::SECTION_STATUS_ENABLE)
->pluck('id')
->toArray();
}
}