@rickbolton I set up a simple /date route in a new app to test out your code. See below, I added toDateTimeString(). When you call ->addHours(n) it doesn't change the actual date (value of $d) (what you were expecting), it just modifies it. You need to print it out to get the value.
get('date', function() {
$start = Carbon::now();
$end = Carbon::now()->addHours(7);
$data = [];
for($d = $start;$d < $end;$d->addHour()){
$data[] = $d->toDateTimeString(); // this line here!
};
return $data;
});
This returns:
[
"2015-10-26 11:44:58",
"2015-10-26 12:44:58",
"2015-10-26 13:44:58",
"2015-10-26 14:44:58",
"2015-10-26 15:44:58",
"2015-10-26 16:44:58",
"2015-10-26 17:44:58"
]