title: import from excel maatwebsite Undefined offset: 1
body: <p>Hello everyone here i am having a problem
  Getting Undefined offset: 1, although array $row is having the values</p>
  <pre><code> public function model(array $row)
      {      
          return new Result([
              'roll'=&gt;$row[0], 
              'cname'=&gt;$row[1], 
              'mname'=&gt;$row[2], 
              'fname'=&gt;$row[3], 
              'dob'=&gt;$row[4], 
              'school_code'=&gt;$row[5], 
              'h1'=&gt;$row[6], 
              'h2'=&gt;$row[7], 
              'e1'=&gt;$row[8], 
              'e2'=&gt;$row[9], 
              'sanskrit'=&gt;$row[10], 
              'm1'=&gt;$row[11], 
              'm2'=&gt;$row[12], 
              's1'=&gt;$row[13], 
              's2'=&gt;$row[14], 
              's3'=&gt;$row[15], 
              'sp'=&gt;$row[16], 
              'sst1'=&gt;$row[17], 
              'sst2'=&gt;$row[18], 
              'result'=&gt;$row[19], 
              'grace'=&gt;$row[20], 
          ]);
      }
  </code></pre>
  <p>please help me out, i am trying excel file data to sql in laravel</p>