Jika terakhir 24 jam *Laravel
$query->where('created_at', '<', Carbon::now()->subDays(1)->toDateTimeString());
Clumsy Copperhead
$query->where('created_at', '<', Carbon::now()->subDays(1)->toDateTimeString());