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


<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class OtherIncome extends Model
{
    protected $table = "other_income";

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

    public function other_income_type()
    {
        return $this->hasOne(OtherIncomeType::class, 'id', 'other_income_type_id');
    }

    public function chart()
    {
        return $this->hasOne(ChartOfAccount::class, 'id', 'account_id');
    }
}

© KUJUNTI.ID