|
|
|
@ -63,9 +63,9 @@ class ParkingSpaceCamera extends Model |
|
|
|
|
|
|
|
public static function getCameraIds($parking_space_number): Collection|array |
|
|
|
{ |
|
|
|
$space_id = ParkingSpace::getValueId($parking_space_number); |
|
|
|
if ($space_id) { |
|
|
|
return self::query()->where('space_id', $space_id)->pluck( |
|
|
|
$space_ids = ParkingSpace::getId($parking_space_number); |
|
|
|
if ($space_ids) { |
|
|
|
return self::query()->whereIn('space_id', $space_ids)->pluck( |
|
|
|
'camera_id' |
|
|
|
); |
|
|
|
} |
|
|
|
|