32 lines
780 B
PHP
32 lines
780 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'
|
|
];
|
|
|
|
/**
|
|
* The attributes excluded from the model's JSON form.
|
|
*
|
|
* @var array
|
|
*/
|
|
// protected $hidden = [];
|
|
|
|
function transaction()
|
|
{
|
|
return $this->hasOne(Transaction::class, 'created_at', 'tarikh_bayaran');
|
|
}
|
|
}
|