1$value = '90060';
2$dt = Carbon::now();
3$days = $dt->diffInDays($dt->copy()->addSeconds($value));
4$hours = $dt->diffInHours($dt->copy()->addSeconds($value)->subDays($days));
5$minutes = $dt->diffInMinutes($dt->copy()->addSeconds($value)->subDays($days)->subHours($hours));
6echo CarbonInterval::days($days)->hours($hours)->minutes($minutes)->forHumans();
1//seconds and human time readable
2$endTime = Carbon::parse("2021-09-23 19:15:16");
3$startTime = Carbon::parse("2021-09-23 19:15:14");
4$timeleft = $startTime->diffForHumans($endTime);
5return $timeleft;
6//output => time_left: "2 second before"