akaunting/app/Abstracts/ImportMultipleSheets.php
2021-06-29 12:22:20 +03:00

26 lines
508 B
PHP

<?php
namespace App\Abstracts;
use Illuminate\Contracts\Queue\ShouldQueue;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\WithChunkReading;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
abstract class ImportMultipleSheets implements ShouldQueue, WithChunkReading, WithMultipleSheets
{
use Importable;
public $user;
public function __construct()
{
$this->user = user();
}
public function chunkSize(): int
{
return 100;
}
}