*/ use HasFactory; /** * @var array */ protected $fillable = [ 'code', 'name', 'hospital_unit_id', 'is_active', ]; /** * @return array */ protected function casts(): array { return [ 'hospital_unit_id' => 'integer', 'is_active' => 'boolean', ]; } public function hospitalUnit(): BelongsTo { return $this->belongsTo(HospitalUnit::class); } }