belongsTo(Payment::class, 'payment_id', 'id'); } public function paymentType() { return $this->belongsTo(PaymentType::class, 'type_id', 'id'); } }