Answers for "php laravel carbon last 3 days"

PHP
1

carbon time ago laravel

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

laravel carbon created_at date in current month

public function myMonthApts()
{
        return $this->appointments()
                        ->whereIn('status_id', [3,4])
                        ->whereYear('created_at', Carbon::now()->year)
                        ->whereMonth('created_at', Carbon::now()->month)
                        ->count();
}
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language