%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/FundTransfer.php

<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class FundTransfer extends Model
{
    protected $table = 'fund_transfers';
    protected $fillable = [
        'from_account_id',
        'to_account_id',
        'amount',
        'date',
        'created_by',
    ];


    public function fromAccount()
    {
        return $this->belongsTo(FinanceAccount::class, 'from_account_id');
    }
    public function toAccount()
    {
        return $this->belongsTo(FinanceAccount::class, 'to_account_id');
    }

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

Zerion Mini Shell 1.0