mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-31 18:24:26 +00:00
change relationship invoice belongs to booking
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user