Answers for "carbon days of this month"

PHP
1

carbon 2 days ago

$users = Users::where('status_id', 'active')
           ->where( 'created_at', '>', Carbon::now()->subDays(30))
           ->get();
Posted by: Guest on November-08-2021
0

carbon get month from date

$now = Carbon::now();
echo $now->year;
echo $now->month;
echo $now->weekOfYear;
Posted by: Guest on July-01-2021

Browse Popular Code Answers by Language