InventoryBlindReceiveExcelExport.php 444 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Exports;
  3. use App\User;
  4. use Illuminate\Support\Collection;
  5. use Maatwebsite\Excel\Concerns\FromCollection;
  6. class InventoryBlindReceiveExcelExport implements FromCollection
  7. {
  8. private $data;
  9. public function __construct($data)
  10. {
  11. $this->data=new Collection($data);
  12. }
  13. /**
  14. * @return \Illuminate\Support\Collection
  15. */
  16. public function collection()
  17. {
  18. return $this->data;
  19. }
  20. }