Answers for "Carbon::now()->subDay()"

PHP
0

laravel carbon today date format

$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Posted by: Guest on November-16-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

Code answers related to "Carbon::now()->subDay()"

Browse Popular Code Answers by Language