title: Display month along with its year
body: <p>I have an array like so:</p>
  
  <pre><code>1 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#714 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#723 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "November"
  ]
  2 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#721 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#717 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "December"
  ]
  3 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#729 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#730 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "January"
  ]
  4 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#732 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#733 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "February"
  ]
  </code></pre>
  
  <p>Now what I want is to append a year to the <code>monthName</code> key after adding the months from <code>subscription_start_month</code> key.</p>
  
  <p>Example of what I want:</p>
  
  <pre><code>2 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#721 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#717 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "December, 2016" // &lt;-- The current year
  ]
  3 =&gt; array:7 [▼
    "id" =&gt; "4"
    "order_code" =&gt; "BS-ORD-000000004"
    "order_type" =&gt; "Mixed - Subscription"
    "subscription_months" =&gt; "4"
    "subscription_start_month" =&gt; Carbon {#729 ▼
      +"date": "2016-11-05 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "subscription_end_month" =&gt; Carbon {#730 ▼
      +"date": "2017-03-04 00:00:00.000000"
      +"timezone_type": 3
      +"timezone": "UTC"
    }
    "monthName" =&gt; "January, 2017" // &lt;-- The next year
  ]
  </code></pre>
  
  <p>I have the tried the following code, but it does not work as expected.</p>
  
  <pre><code>$startMonthForMixed = $invoice-&gt;subscription_start_date-&gt;month;
  
  for($i = 0; $i &lt; $invoice-&gt;subscription_months; $i++) {
      $convertedInvoices[] = [
          'id' =&gt; $invoice-&gt;id,
          'order_code'               =&gt; $invoice-&gt;order_code,
          'order_type'               =&gt; 'Mixed - Subscription',
          'subscription_months'      =&gt; $invoice-&gt;subscription_months,
          'subscription_start_month' =&gt; $invoice-&gt;subscription_start_date,
          'subscription_end_month'   =&gt; $invoice-&gt;subscription_end_date,
          'monthName'                =&gt; date("F", mktime(0, 0, 0, $startMonthForMixed, 01)) . ", " . Carbon::now()-&gt;addYear()
       ];
       $startMonthForMixed++;
   }
  </code></pre>
  
  <hr>
  
  <p><strong>UPDATE 1:</strong></p>
  
  <p>Scenario: A user makes a subscription on October 2016 for 6 months.. So, the array will look something like this:</p>
  
  <pre><code>[
      "subscription_months" =&gt; 6
      "subscription_start_month =&gt; "01-10-2016" // &lt;-- will be carbon instance
      "subscription_end_month =&gt; "31-03-2017" // &lt;-- will be carbon instance
      "monthName" =&gt; "October"
  ]
  </code></pre>
  
  <p>The above array I am showing is only 1 month.. There will be 5 more elements in the array..</p>
  
  <p>What I want is, I want to append the <code>Year</code> after <code>monthName</code>..</p>
  
  <p>So the array should look like this:</p>
  
  <pre><code>[
      [
          "monthName" =&gt; "October, 2016" // &lt;-- for 1st month
      ]
  
      [
          "monthName" =&gt; "November, 2016" // &lt;-- for 2nd month
      ]
  
      [
          "monthName" =&gt; "December, 2016" // &lt;-- for 3rd month
      ]
  
      [
          "monthName" =&gt; "January, 2017" // &lt;-- for 4th month
      ]
  
      [
          "monthName" =&gt; "February, 2017" // &lt;-- for 5th month
      ]
  
      [
          "monthName" =&gt; "March, 2017" // &lt;-- for 6th month
      ]
  ]
  </code></pre>
  
  <p>How can I achieve that ? Kindly help me out..</p>