belongsTo(Unidade::class); } public function unidadeSolicitante() { return $this->belongsTo(Unidade::class); } public function infraestrutura() { return $this->belongsTo(Infraestrutura::class); } public function unidadeSolicitanteInfraestrutura() { return $this->belongsTo(Infraestrutura::class); } public function cotaUnidadeSolicitante() { return $this->hasMany(CotaUnidadeSolicitante::class); } public function cotaExame() { return $this->hasMany(CotaExame::class); } public function getIsAllowedToDeleteAttribute() { return true; } }