rsabhk_hsr/app/Models/RuangPelayanan.php
hasrinuryawati 17278441a7 first
2025-04-27 00:49:56 +07:00

33 lines
709 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\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class RuangPelayanan extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'ruang_pelayanan';
protected $fillable = [
'created_at',
'created_by',
'updated_at',
'updated_by',
'deleted_at',
'deleted_by',
'nama',
];
public function registrasi() : HasMany
{
return $this->hasMany(Registrasi::class, 'id_ruang_pelayanan', 'id');
}
}