belongsTo(User::class, 'user_id', 'user_id'); } public function billingAddress() { return $this->belongsTo(Address::class, 'billing_address_id', 'address_id'); } public function shippingAddress() { return $this->belongsTo(Address::class, 'shipping_address_id', 'address_id'); } public function tickets() { return $this->hasMany(Ticket::class, 'order_id', 'order_id'); } }