api for customer online update

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-11-17 10:47:35 +08:00
parent cb3a5b91c2
commit 057059feb0
6 changed files with 93 additions and 11 deletions
+46 -4
View File
@@ -7,15 +7,57 @@ use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
protected $table = 'customer';
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array
*/
// protected $fillable = [
// ];
protected $fillable = [
'ahli',
'kodcaw',
'nosiri',
'tarikhdaftar',
'nopelanggan',
'kplama',
'kpbaru',
'nama',
't_lahir',
'jantina',
'alamat1',
'alamat2',
'alamat3',
'alamat4',
'poskod',
'koddaerah',
'kodnegeri',
'telefon',
'jumpinjaman',
't_gadai',
'pinjamhari',
'bumiputra',
'warganegara',
'bangsa',
'kodkerja',
'kodugama',
'kodstatus',
'kodbank',
'noakaun',
'nota' ,
'teller',
'pelulus',
't_ubah',
'm_ubah',
'aktif',
'yuranahli',
'tujuangadai',
'kodkerjabaru',
'nopelangganlama',
'tagperingatan',
'kumpulan',
'telefon2',
'tagpelanggan'
];
/**
* The attributes excluded from the model's JSON form.