Laravel-excel: Chunk seems to be ignored

Created on 23 May 2017  路  2Comments  路  Source: Maatwebsite/Laravel-Excel

Please prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].

Package version, Laravel version

Laravel 5.4 - Excel version 2.1

Expected behaviour

Dispaying 10 items of the feed

Actual behaviour

Doesnt kick into the closure

Hi, im trying to chunk a Excel file but when i use a dd on the $data, it doesnt get reached. Any clue why?

\Excel::filter( 'chunk' )
            ->load( '/var/www/dev.local/storage/app/stock.csv' )
            ->chunk( '10', function ( $data ) {
                dd( __LINE__ . ':[' . __FILE__ . ']', $data );
            } );

Most helpful comment

It's being queued, you have to run your queue worker.

All 2 comments

It's being queued, you have to run your queue worker.

Hi Patrick,

Thats correct, it is getting queued! Thanks for your quick response!

Was this page helpful?
0 / 5 - 0 ratings