diff --git a/src/Invoice.php b/src/Invoice.php index 67cebf29..06c8936f 100644 --- a/src/Invoice.php +++ b/src/Invoice.php @@ -324,6 +324,16 @@ public function downloadAs($filename, array $data) ]); } + /** + * Get the Stripe model instance. + * + * @return \Illuminate\Database\Eloquent\Model + */ + public function owner() + { + return $this->owner; + } + /** * Get the Stripe invoice instance. * diff --git a/src/InvoiceItem.php b/src/InvoiceItem.php index 50121dc7..b598ca97 100644 --- a/src/InvoiceItem.php +++ b/src/InvoiceItem.php @@ -112,6 +112,16 @@ protected function formatAmount($amount) return Cashier::formatAmount($amount, $this->item->currency); } + /** + * Get the Stripe model instance. + * + * @return \Illuminate\Database\Eloquent\Model + */ + public function owner() + { + return $this->owner; + } + /** * Get the underlying Stripe invoice item. * diff --git a/src/PaymentMethod.php b/src/PaymentMethod.php index e589f0f1..289e4ec8 100644 --- a/src/PaymentMethod.php +++ b/src/PaymentMethod.php @@ -50,6 +50,16 @@ public function delete() return $this->owner->removePaymentMethod($this->paymentMethod); } + /** + * Get the Stripe model instance. + * + * @return \Illuminate\Database\Eloquent\Model + */ + public function owner() + { + return $this->owner; + } + /** * Get the Stripe PaymentMethod instance. *