params)) { return json_decode($this->params,1); } else { return null; } } public function paymentType() { return $this->hasOne('App\Models\PaymentType','id', 'payment_type_id'); } public function propertyPaymentMappingInstallments() { return $this->hasMany('App\Models\PropertyPaymentInstallment','property_payment_mapping_id', 'id' ) ->select('id', 'property_id', 'property_payment_mapping_id', 'installment', 'commission', 'status'); } }