whereIn('status', InvoiceStatus::canBeOverdue()) ->where('due_date', '<', today()) ->update(['status' => InvoiceStatus::Overdue]); } }