%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/duwit.rezakurnia.com/rechive-hub/app/Models/Finance/
Upload File :
Create Path :
Current File : //home2/rezakur1/duwit.rezakurnia.com/rechive-hub/app/Models/Finance/FinanceTransaction.php

<?php

namespace App\Models\Finance;

use App\Models\User;
use Illuminate\Database\Eloquent\Model;

class FinanceTransaction extends Model
{
    protected $table = 'finance_transactions';

    protected $fillable = [
        'finance_account_id',
        'finance_category_id',
        'finance_type_id',
        'amount',
        'date',
        'description',
        'created_by',
    ];

    public function financeAccount()
    {
        return $this->belongsTo(FinanceAccount::class, 'finance_account_id');
    }

    public function financeCategory()
    {
        return $this->belongsTo(FinanceCategory::class, 'finance_category_id');
    }

    public function financeType()
    {
        return $this->belongsTo(FinanceType::class, 'finance_type_id');
    }

    public function creator()
    {
        return $this->belongsTo(User::class, 'created_by');
    }
}

Zerion Mini Shell 1.0