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