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/Collateral.php


<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Collateral extends Model
{
    protected $table = "collateral";

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }

    public function collateral_type()
    {
        return $this->hasOne(CollateralType::class, 'id', 'collateral_type_id');
    }

    public function loan()
    {
        return $this->hasOne(Loan::class, 'id', 'loan_id');
    }

    public function borrower()
    {
        return $this->hasOne(Borrower::class, 'id', 'borrower_id');
    }

    public function collateralVehicle()
    {
        return $this->hasOne(CollateralVehicle::class, 'collateral_id', 'id');
    }
}

© KUJUNTI.ID