update lelong simulasi payment new db mysql2

This commit is contained in:
Nur Izzati Zulkifli
2022-07-07 12:01:07 +08:00
parent 98e70a2c97
commit e947e14575
14 changed files with 487 additions and 137 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
use HasFactory;
protected $connection = 'mysql2';
protected $table = 'customer';
protected $fillable = [
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TransaksiKeuntungan extends Model
{
protected $connection = 'mysql2';
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'
];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
// protected $hidden = [];
}