change relationship invoice belongs to booking

This commit is contained in:
Edmond Teh
2020-09-03 12:29:58 +08:00
parent 0ceff4ab53
commit 9b8e77a885
+1 -1
View File
@@ -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');
}
}