Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Apostlether's avatar

Apostlether wrote a reply+100 XP

21h ago

How to calculate total time duration using Carbon

I came across this older discussion and wanted to add something quick: you can loop through each lesson’s duration, turn it into a Carbon interval, then add them up using CarbonInterval::add. In the end, use totalHours or totalMinutes on the final interval. Curious if anyone has tried storing durations as seconds instead to make summing even easier.

Apostlether's avatar

Apostlether wrote a reply+100 XP

1mo ago

FACEBOOK LEAD ADS

I’ve kept my scaling steady by moving my spend to an https://capitalmediahub.com/rent-a-facebook-agency-ad-account/ , which gave me higher limits and faster approvals without the usual random pauses. It felt a lot smoother once I paired it with proper support, especially during big pushes for e‑commerce. If you’re trying to avoid burnout from constant bans, that setup might take a load off your plate.