Answers for "current time 24 get carbon laravel"

PHP
1

get current date carbon laravel

use Carbon\Carbon;
$date = Carbon::now();
//Get date and time
$date->toDateTimeString();
//Get date
$date->toDateString();
Posted by: Guest on December-04-2020
1

carbon time ago laravel

$comment->created_at->diffForHumans();
Posted by: Guest on May-09-2020

Code answers related to "current time 24 get carbon laravel"

Browse Popular Code Answers by Language