Store Customer, Store Booking details
This commit is contained in:
parent
b362b93bca
commit
6706d28f51
33 changed files with 1048 additions and 257 deletions
|
|
@ -143,15 +143,15 @@ class Customer extends Model
|
|||
}
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany(Booking::class);
|
||||
return $this->hasMany(Booking::class, 'customer_id');
|
||||
}
|
||||
public function coupons()
|
||||
{
|
||||
return $this->hasMany(Coupon::class);
|
||||
return $this->hasMany(Coupon::class, 'customer_id');
|
||||
}
|
||||
public function leads()
|
||||
{
|
||||
return $this->hasMany(Lead::class);
|
||||
return $this->hasMany(Lead::class, 'customer_id');
|
||||
}
|
||||
|
||||
public function getSalutation(){
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ class CustomerFewoMail extends Model
|
|||
|
||||
public function booking()
|
||||
{
|
||||
return $this->belongsTo(TravelUserBookingFewo::class);
|
||||
return $this->belongsTo(TravelUserBookingFewo::class, 'travel_user_booking_fewo_id');
|
||||
}
|
||||
|
||||
public function travel_user()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue