ab598c12c9
2. change from max pinjaman with a static 75% and 80% to manipulate value
40 lines
817 B
PHP
40 lines
817 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MaxMutuEmas extends Model
|
|
{
|
|
protected $table = 'max_mutuemas';
|
|
protected $primaryKey = 'recno';
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'recno', 'karat', 'keterangan', 'teller', 'pc', 'operasi', 'tarikhupdate'
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'teller' => 'decimal:2',
|
|
'pc' => 'decimal:2',
|
|
'operasi' => 'decimal:2',
|
|
'tarikhupdate' => 'datetime',
|
|
];
|
|
|
|
/**
|
|
* The attributes excluded from the model's JSON form.
|
|
*
|
|
* @var array
|
|
*/
|
|
// protected $hidden = [];
|
|
} |