title: Add array of objects with the dot notation
body: <p>With the following code <code>Arr::set($array, 'messages.to.email', $value);</code></p>
  <p>That will generate an output like:</p>
  <pre><code>{
    &quot;messages&quot;: {
      &quot;subject&quot;: &quot;this is out email&quot;,
      &quot;to&quot;: {
         &quot;email&quot;: &quot;myemail@gmail.com&quot;
      }
    }
  }
  </code></pre>
  <p>My issue is that I need this output instead:</p>
  <pre><code>{
    &quot;messages&quot;: [{
      &quot;subject&quot;: &quot;this is out email&quot;,
      &quot;to&quot;: {
         &quot;email&quot;: &quot;myemail@gmail.com&quot;
      }
    }]
  }
  </code></pre>
  <p>Being messages an array of objects. I haven't been able to find a native way of doing it, so I'm thinking of manually adding something like <code>messages[].to.email</code></p>
  <p>Am I missing something? A magic helper or syntax? to achieve what I'm looking for?</p>