How to Get Timesince or Time ago in Laravel 10
In Laravel 10, you can use the Carbon library to get the timesince or time ago. Carbon is a popular library for working with dates and times in PHP. Example <?php use Carbon\Carbon; // Example timestamp $timestamp = ‘2022-02-28 10:00:00’; // Get the time since the timestamp $timeSince = Carbon::parse($timestamp)->diffForHumans(); // Get the time ago … Read more