TestImport.php 494 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use Maatwebsite\Excel\Files\ExcelFile;
  3. class TestImport extends ExcelFile {
  4. protected $delimiter = ',';
  5. protected $enclosure = '"';
  6. protected $lineEnding = '\r\n';
  7. /**
  8. * Get file to import
  9. * @return string
  10. */
  11. public function getFile()
  12. {
  13. return __DIR__ . '/../files/test.csv';
  14. }
  15. /**
  16. * Get filters
  17. * @return array
  18. */
  19. public function getFilters()
  20. {
  21. return [
  22. 'chunk'
  23. ];
  24. }
  25. }