Fix Komisi

This commit is contained in:
R
2023-04-06 06:49:04 +07:00
parent 97486da90f
commit 3ff0cc1b29
5 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models\OLDLMS;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class HealthcareCommission extends Model
{
use HasFactory, SoftDeletes;
const CREATED_AT = 'dCreateOn';
const UPDATED_AT = 'dUpdateOn';
const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms';
protected $table = 'tx_healthcare_commission';
protected $primaryKey = 'nID';
public function healthcare()
{
return $this->belongsTo(Healthcare::class, 'nIDHealthcare', 'nID');
}
}