laravel caorban add year 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 add few hours
Carbon::now('UTC')->addHour($hours)->format('Y-m-d H:i:s')