• File: Profit.php
  • Full Path: /var/www/imaliapitest/app/Bank/Profit.php
  • Date Modified: 05/19/2025 4:29 PM
  • File size: 640 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace App\Bank;

use App\Imali\Transfer;
use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;

class Profit extends Model
{
    protected $fillable = [
        'payer_id',
        'payer_account',
        'amount',
        'amount_credited',
        'comissao',
        'profit_id',
        'payment_id'
    ];

    function paymentTransactions()
    {
        return $this->hasMany(Payment::class);
    }

    function transferencias()
    {
        return $this->hasMany(Transfer::class);
    }

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('d-m-Y H:i:s');
    }
}