public scopePrimary ( $query, $accountGatewaysIds ) | ||
$query | ||
$accountGatewaysIds |
public function scopePrimary($query, $accountGatewaysIds)
{
$query->where('payment_library_id', '=', 1)->where('id', '!=', GATEWAY_WEPAY)->whereIn('id', static::$preferred)->whereIn('id', $accountGatewaysIds);
}