isEmpty($row, 'invoice_number')) { return []; } $row = parent::map($row); $row['category_id'] = $this->getCategoryId($row, 'income'); $row['contact_id'] = $this->getContactId($row, 'customer'); return $row; } public function rules(): array { return (new Request())->rules(); } }