How do i import until row 5 using laravel excel version 3.1?

892 views Asked by At

how to import file data excel until row 5 using laravel excel 3.1? excel code

1

There are 1 answers

0
Flak On

When you only want to return the first x rows of a sheet, you can use limit().

    public function limit(): int
    {
        return 10;
    }

https://github.com/Maatwebsite/Laravel-Excel/issues/2423