title: Create multi-dimensional StdClass Object array with foreach
body: <p>I am trying to create a multi-dimentional StdClass Object, but the output is always from the last loop of the first and second foreach loop, not a collection of all the loops. </p>
  
  <p>Each day should have 3 $exercises inside it. And there's 5 days, but only 1 day with 1 exercise show up.</p>
  
  <p>Function &amp; current output:
  <a href="http://paste.laravel.com/WIU" rel="nofollow">http://paste.laravel.com/WIU</a></p>