title: Laravel - Multiple Arrays for Multiple Recipients (Mailable/Notifications)
body: <p>I'm looking for advice for a project and an interesting predicament I've put myself in.</p>
  
  <p>I have multiple fields in my shipment model, they are:</p>
  
  <ul>
  <li>shipto_id </li>
  <li>shipfrom_id</li>
  <li>billto_id</li>
  </ul>
  
  <p>They all link (through different relationships) to my customer model:</p>
  
  <pre><code>public function billtoAccount()
  {
      return $this-&gt;belongsTo('App\Customer', 'bill_to');
  }
  
  public function shiptoAccount()
  {
      return $this-&gt;belongsTo('App\Customer', 'ship_to');
  }
  
  public function shipfromAccount()
  {
      return $this-&gt;belongsTo('App\Customer', 'ship_from');
  }
  </code></pre>
  
  <p>and these customers (in reality would likely be better described as customer accounts (these are NOT USER ACCOUNTS, they're more just like a profile for each company that business is done with)) can have a multitude of users associated with them. </p>
  
  <pre><code> public function users()
  {
      return $this-&gt;belongsToMany(User::class);
  }
  </code></pre>
  
  <p>Now, while I know how to send off mailables and notifications, I was curious to know how I would go about sending off those to multiple user's emails. So let me describe the following: Something is created and the following customers (and in turn, their users) are referenced.</p>
  
  <ul>
  <li>(billto_id) - Customer Account 1 - User 1 (email1@example.com)</li>
  <li>(shipto_id) - Customer Account 2 - User 2 (email2@example.com) &amp; User 3 (email3@example.com)</li>
  <li>(shipfrom_id) - Customer Account 37 - User 6 (email4@example.com)</li>
  </ul>
  
  <p>Now, how would I go about moving the emails of the users over to an array of emails to have a notification or mailable sent to them?</p>
  
  <p>So it should pop out: email1@example.com, email2@example.com, email3@example.com, email4@examples.com</p>