How to make header rows optional ? causing issue of undefined key #3279
Unanswered
ahmadkureshi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello i would like to know sis there any way to validate the heading row like on my import
i have this code
public function model(array $row)
{
return new ProspectsRecord([
'prospects_id' => $this->prospects_id,
'email' => $row['email'],
'address' => $row['address'],
'city' => $row['city'],
'state' => $row['state'],
'zip_code'=>$row['zip_code'],
'contact'=>$row['contact']
]);
}
Beta Was this translation helpful? Give feedback.
All reactions