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'); } }