Manage address and deliveries
This commit is contained in:
@@ -14,7 +14,7 @@ class Customer extends Model
|
||||
return $this->hasMany(CustomerAddress::class);
|
||||
}
|
||||
|
||||
public function Invoices()
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class);
|
||||
}
|
||||
@@ -25,11 +25,16 @@ class Customer extends Model
|
||||
}
|
||||
|
||||
public function deliveries()
|
||||
{
|
||||
return $this->belongsToMany(Delivery::class);
|
||||
}
|
||||
|
||||
public function deliveries2()
|
||||
{
|
||||
return $this->hasManyThrough(Delivery::class, CustomerDelivery::class);
|
||||
}
|
||||
|
||||
public function Orders()
|
||||
public function orders()
|
||||
{
|
||||
return $this->hasMany(Order::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user