convert datetime to unix timestamp milliseconds carbon 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: current timestamp carbon
Carbon::now()->timestamp