perbaikan format surat
This commit is contained in:
35
Entities/Category.php
Normal file
35
Entities/Category.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Konfirmasibank\Entities;
|
||||
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'db2';
|
||||
protected $table = 'STG_DB.CATEGORY';
|
||||
protected $primaryKey = 'ID';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'ID',
|
||||
'DESCRIPTION'
|
||||
'SHORT_NAME',"
|
||||
];
|
||||
|
||||
|
||||
public function customers(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user