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