@ajsmith_codes are you sure you've got your eloquent relationships correct?
Surely:
- Order belongsTo Contact
- Contact hasMany Order
how would Order belongToMany Contact? Only one contact creates an order?
Also, if you are following Laravel conventions (and please do, they make life much easier), your join table would be 'contact_order'. // alphabetical singular verbs
You don't need a model for a join table.
if Order belongsToMany Contact then the relationship would be plural
public function contacts()
{
return $this->belongsToMany(App\Models\Contact::class, 'contact_order', 'order_id', 'contact_id');
}
but I don't think that you should use that relationship though.