Select with BelongsToMany without multiple()?

Trying to work with an existing model setup. Have two relationships. One just gets a list of contacts and you can pick multiple. The other lets you simple pick 1 as your primary contact. They are both stored in the same table, there is just an additional boolean column for setting it as primary or not. Everything works great for loading the relationship and saving at this point, but I obviously dont want multiple() for the primary contact. Suggestions? The primary relationship is something like
$this->contacts()->wherePivot('primary', 1);
with ->contacts() being a
belongstomany()
. Im using saveRelationshipsUsing() to handle the saving part. Like I said, everything works great except for multiple() requirement as Select wont work with belongstomany().
Was this page helpful?