feat : admin driver name
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user