I am trying to convert a number on minutes into number of days using Carbon.
$minutes = 1400;
I want to do something like below (which of cours
Not tested, but a quick look at the docs suggests it might be aimed more at DateTime objects than differences in time, so you could do something like this:
$now = Carbon::now();
$days = $now->diffInDays($now->copy()->addMinutes($minutes));
Maybe CarbonInterval::minutes($minutes)->cascade();
?
Will cascade down your value and format it for humans.