Show additional patient information in Dashboard Appointment

This commit is contained in:
R
2023-02-15 10:13:07 +07:00
parent 016bd3f605
commit 46af57b17c
4 changed files with 19 additions and 1 deletions

View File

@@ -39,4 +39,9 @@ class User extends Model
}
);
}
public function detail()
{
return $this->hasOne(UserDetail::class, 'nIDUser', 'nID');
}
}

View File

@@ -8,4 +8,13 @@ use Illuminate\Database\Eloquent\Model;
class UserDetail extends Model
{
use HasFactory;
const CREATED_AT = 'dCreateOn';
const UPDATED_AT = 'dUpdateOn';
const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms';
protected $table = 'tm_users_detail';
}