rsabhk_hsr/app/Models/Pasien.php
hasrinuryawati ced9b41539 transaksi
2025-04-27 20:02:22 +07:00

33 lines
636 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class Pasien extends Model
{
use HasFactory;
protected $table = 'pasien';
protected $fillable = [
'created_at',
'created_by',
'updated_at',
'updated_by',
'nama',
'nik',
'tgl_lahir',
'jenis_kelamin',
];
public function registrasi() : HasMany
{
return $this->hasMany(Registrasi::class, 'id_pasien', 'id');
}
}