Answers for "Carbon now add time"

PHP
1

add seconds to datetime carbon

Try to parse() it first:
$date = Carbon::parse($dateTime)
            ->addSeconds($seconds)
            ->format('Y-m-d H:i:s');
Posted by: Guest on July-06-2020
0

carbon now

Carbon::now();
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language