title: Laravel Import CSV, index issue
body: <p>Trying to figure out why I am getting the following error:</p>
  
  <p>Undefined index Plugin ID</p>
  
  <p>I am using Maatwebsite\Excel for my import and tried using the guide here:</p>
  
  <p><a href="https://appdividend.com/2017/06/12/import-export-data-csv-excel-laravel-5-4/" rel="nofollow noreferrer">https://appdividend.com/2017/06/12/import-export-data-csv-excel-laravel-5-4/</a></p>
  
  <p>I think I have everything in the right place, but I am getting the above error from this code:</p>
  
  <pre><code>public function import(Request $request)
  {
  if($request-&gt;file('imported-file'))
  {
          $path = $request-&gt;file('imported-file')-&gt;getRealPath();
          $data = Excel::load($path, function($reader)
    {
          })-&gt;get();
  
    if(!empty($data) &amp;&amp; $data-&gt;count())
    {
      foreach ($data-&gt;toArray() as $row)
      {
        if(!empty($row))
        {
          $dataArray[] =
          [
            'plugin_id' =&gt; $row['Plugin ID'],
            'cve' =&gt; $row['CVE'],
            'cvss' =&gt; $row['CVSS'],
            'risk' =&gt; $row['Risk'],
            'host' =&gt; $row['Host'],
            'protocol' =&gt; $row['Protocol'],
            'port' =&gt; $row['Port'],
            'name' =&gt; $row['Name'],
            'synopsis' =&gt; $row['Synopsis'],
            'description' =&gt; $row['Description'],
            'solution' =&gt; $row['Solution'],
            'see_also' =&gt; $row['See Also'],
            'plugino_utput' =&gt; $row['Plugin Output']
          ];
        }
    }
    if(!empty($dataArray))
    {
       Shipping::insert($dataArray);
       return back();
     }
   }
  }
  }
  </code></pre>
  
  <p>This is in my controller file and is trying to account for the headers being different in the CSV compared to in my database.</p>
  
  <p>Any idea why it would be complaining about index on a column from the csv side of things?</p>