Answers for "laravel carbon time to minutes"

PHP
1

carbon add minutes

Carbon::now()->addMinutes($minutes)->timestamp;
Posted by: Guest on November-24-2020
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

Code answers related to "laravel carbon time to minutes"

Browse Popular Code Answers by Language