public function scopeByPartnerId($query, $partnerId)
{
if (is_countable($partnerId)) {
$query->whereIn('partner_id', $partnerId);
} else {
$query->where('partner_id', $partnerId);
}
}
public function scopeByPartnerId($query, $partnerId)
{
$query->where('partner_id', $partnerId);
}
public function scopeByPartnerIds(Builder $query, array $partnerIds)
{
$query->whereIn('partner_id', $partnerIds);
}
public function scopeByPartnerId($query, int|array $partnerId)
{
if (is_countable($partnerId)) {
$query->whereIn('partner_id', $partnerId);
} else {
$query->where('partner_id', $partnerId);
}
}