add time to carbon date laravel code example
Example 1: add seconds to datetime carbon
Try to parse() it first:
$date = Carbon::parse($dateTime)
->addSeconds($seconds)
->format('Y-m-d H:i:s');
Example 2: carbon time ago laravel
$comment->created_at->diffForHumans();