MultipleSheets import validation message
This commit is contained in:
@@ -2,17 +2,12 @@
|
||||
|
||||
namespace App\Imports\Common;
|
||||
|
||||
use App\Abstracts\ImportMultipleSheets;
|
||||
use App\Imports\Common\Sheets\Items as Base;
|
||||
use App\Imports\Common\Sheets\ItemTaxes;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Items implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
class Items extends ImportMultipleSheets
|
||||
{
|
||||
use Importable;
|
||||
|
||||
public function sheets(): array
|
||||
{
|
||||
return [
|
||||
@@ -20,9 +15,4 @@ class Items implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
'item_taxes' => new ItemTaxes(),
|
||||
];
|
||||
}
|
||||
|
||||
public function chunkSize(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user