This commit is contained in:
Ludovic CANDELLIER
2021-11-24 23:04:13 +01:00
parent 7092cf23fc
commit cb0b2e4aa0
3 changed files with 7 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ class Customer extends Model
protected $guarded = ['id'];
protected $table = 'shop_customers';
public function CustomerAddresses()
public function addresses()
{
return $this->hasMany(CustomerAddress::class);
}
@@ -26,7 +26,7 @@ class Customer extends Model
public function deliveries()
{
return $this->belongsToMany(Delivery::class);
return $this->belongsToMany(Delivery::class, 'shop_customer_deliveries');
}
public function deliveries2()