hasMany(CustomerAddress::class); } public function invoices() { return $this->hasMany(Invoice::class); } public function customer_deliveries() { return $this->hasMany(CustomerDelivery::class); } public function deliveries() { return $this->belongsToMany(Delivery::class, 'shop_customer_deliveries'); } public function deliveries2() { return $this->hasManyThrough(Delivery::class, CustomerDelivery::class); } public function orders() { return $this->hasMany(Order::class); } public function User() { return $this->belongsTo('App\User'); } }