title: how to skip the row about importing excel laravel with the Maatwebsite/Laravel-Excel
body: <p>I have a problem to skip the row about importing excel laravel with the Maatwebsite / Laravel-Excel package.
  I tried many ways from the internet but it still didn't work.</p>
  
  <p>this is my controller code</p>
  
  <pre><code>if ($request-&gt;hasFile('file')) {
          $import = new HsatuImport();
          $file = $request-&gt;file('file'); //GET FILE
          // config(['excel.import.startRow' =&gt; 2]);
          Excel::import($import, $file)-&gt;limit(false, 2); //IMPORT FILE
          return redirect()-&gt;route('admin.hsatus.upload')-&gt;withFlashSuccess('Upload Berhasil '.$import-&gt;getRowCount().' Data');
      } else {
          return redirect()-&gt;route('admin.hsatus.upload')-&gt;withFlashSuccess('Upload Gagal');
      }
  </code></pre>
  
  <p>and this is my import code</p>
  
  <pre><code>&lt;?php
  
  namespace App\Imports;
  
  use App\Models\Hsatu;
  use Maatwebsite\Excel\Concerns\WithHeadingRow;
  use Maatwebsite\Excel\Concerns\ToModel;
  
  class HsatuImport implements ToModel
  {
      /**
      * @param array $row
      *
      * @return \Illuminate\Database\Eloquent\Model|null
      */
      private $rows = 0;
      public function model(array $row)
      {
          ++$this-&gt;rows;
          return new Hsatu([
              'region' =&gt; @$row[0],
              'nomor_faktur' =&gt; @$row[1],
              'nomor_rangka' =&gt; @$row[2],
              'kode_mesin' =&gt; @$row[3]
          ]);
      }
  
      public function headingRow(): int
      {
          return 1;
      }
  
      public function getRowCount(): int
      {
          return $this-&gt;rows;
      }
  }
  
  </code></pre>