KUJUNTI.ID MINISH3LL
Path : /var/www/html/thb_loan_system/app/Models/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/thb_loan_system/app/Models/SavingTransaction.php


<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SavingTransaction extends Model
{
    protected $table = "savings_transactions";



    public function borrower()
    {
        return $this->hasOne(Borrower::class, 'id', 'borrower_id');
    }
    public function payment_method()
    {
        return $this->hasOne(LoanRepaymentMethod::class, 'id', 'payment_method_id');
    }
    public function savings()
    {
        return $this->hasOne(Saving::class, 'id', 'savings_id');
    }
    public function user()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }

}

© KUJUNTI.ID