From f5c431a9eca45f82e6dd6ca659a3ec84fe7a0da7 Mon Sep 17 00:00:00 2001 From: Edmond Teh Date: Thu, 3 Sep 2020 12:39:53 +0800 Subject: [PATCH] Invoice hasOne InvoiceDetails --- app/Invoice.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Invoice.php b/app/Invoice.php index 69608581..581d1e1d 100644 --- a/app/Invoice.php +++ b/app/Invoice.php @@ -11,4 +11,8 @@ class Invoice extends Model public function booking(){ return $this->belongsTo('App\Booking'); } + + public function invoiceDetails() { + return $this->hasOne('App\InvoiceDetails'); + } }