lazy collections for exports
This commit is contained in:
		@@ -15,7 +15,7 @@ class InvoiceHistories extends Export
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ class InvoiceItemTaxes extends Export
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ class InvoiceItems extends Export
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ class InvoiceTotals extends Export
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ class InvoiceTransactions extends Export
 | 
			
		||||
            $model->whereIn('document_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ class Invoices extends Export
 | 
			
		||||
            $model->whereIn('id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->get();
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user