ubah entity category
This commit is contained in:
@ -13,23 +13,23 @@ class Category extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'db2';
|
||||
protected $table = 'STG_DB.CATEGORY';
|
||||
protected $primaryKey = 'ID';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'category';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'ID',
|
||||
'DESCRIPTION'
|
||||
'SHORT_NAME',"
|
||||
"'id',
|
||||
'description'
|
||||
'short_name',"
|
||||
];
|
||||
|
||||
|
||||
public function customers(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
}
|
||||
// public function customers(): BelongsTo
|
||||
// {
|
||||
// return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
// }
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user