Answers for "how to get the day hours minutes seconds passed after created_at in laravel using carbon"

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
1

laravel carbon get day name

use Carbon\Carbon;

Carbon::now()->format("l") // today's day name. example: Sunday
Posted by: Guest on October-20-2021

Code answers related to "how to get the day hours minutes seconds passed after created_at in laravel using carbon"

Browse Popular Code Answers by Language