День углерода 30 дней назад
Carbon::parse('2021-07-30')->subDays(30)->format('Y-m-d 00:00:00');
Shadow
Carbon::parse('2021-07-30')->subDays(30)->format('Y-m-d 00:00:00');
$users = Users::where('status_id', 'active')
->where( 'created_at', '>', Carbon::now()->subDays(30))
->get();
$dt =Carbon::now();
echo $dt->subDay(); // 2012-03-03 00:00:00
echo $dt->subDays(29);