carbon subtract two dates

Solutions on MaxInterview for carbon subtract two dates by the best coders in the world

showing results for - "carbon subtract two dates"
Elena
26 Jul 2018
1$date = Carbon::parse('2016-09-17 11:00:00');
2$now = Carbon::now();
3
4$diff = $date->diffInDays($now);