From 9b8e77a885093d869133c0c1c691ce125e28c2ed Mon Sep 17 00:00:00 2001 From: Edmond Teh Date: Thu, 3 Sep 2020 12:29:58 +0800 Subject: [PATCH] change relationship invoice belongs to booking --- app/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Invoice.php b/app/Invoice.php index 5150b1e4..0c5be559 100644 --- a/app/Invoice.php +++ b/app/Invoice.php @@ -9,6 +9,6 @@ class Invoice extends Model protected $fillable = ['invoice_url','amount','booking_id']; public function booking(){ - return $this->hasOne('App\Booking'); + return $this->belongsTo('App\Booking'); } }