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

Dewaxdi's avatar

Dewaxdi wrote a reply+100 XP

22h ago

How to calculate total time duration using Carbon

I just loop through the lessons, parse each duration with CarbonInterval, then add them together. Something like: total = CarbonInterval::seconds($lessons->sum('duration_in_seconds'))->cascade();

Dewaxdi's avatar

Dewaxdi wrote a reply+100 XP

2d ago

Does ReactJS hurt SEO?

I’ve seen better SEO results just by adding server-side rendering, since bots get the HTML right away. Without it, I’ve had pages indexed slowly or with missing content.