Added import skip unknown sheets
This commit is contained in:
parent
33754a0944
commit
57c5a005a4
|
|
@ -5,9 +5,10 @@ namespace App\Abstracts;
|
|||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
|
||||
use Maatwebsite\Excel\Concerns\SkipsUnknownSheets;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
abstract class ImportMultipleSheets implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
abstract class ImportMultipleSheets implements ShouldQueue, WithChunkReading, WithMultipleSheets, SkipsUnknownSheets
|
||||
{
|
||||
use Importable;
|
||||
|
||||
|
|
@ -22,4 +23,9 @@ abstract class ImportMultipleSheets implements ShouldQueue, WithChunkReading, Wi
|
|||
{
|
||||
return config('excel.imports.chunk_size');
|
||||
}
|
||||
|
||||
public function onUnknownSheet($sheetName)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue