Files
api_arrahn/app/TransaksiKeuntungan.php
T
ismailmasseran 9fa0172017
Build Docker Image / build-backend (push) Successful in 23s
Experiment/merge annur (#15)
Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Reviewed-on: #15
2026-09-20 12:49:53 +08:00

32 lines
795 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TransaksiKeuntungan extends Model
{
protected $table = 'transaksi_keuntungan';
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'norujukan','bayaran_keuntungan','tarikh_bayaran','kodcaw','bayaran_pembiayaan','keuntungan_rebet','ujrah','ujrah_rebet','onepercent','onepercent_rebet','tempoh','beza_tempoh','margin_semasa','rounded','kadardiskaun'
];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
// protected $hidden = [];
function transaction()
{
return $this->hasOne(Transaction::class, 'created_at', 'tarikh_bayaran');
}
}