Answers for "laravel carbon to day and date string"

PHP
1

laravel carbon human readable

$comment->created_at->diffForHumans();
Posted by: Guest on May-09-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 to day and date string"

Browse Popular Code Answers by Language