belongsTo(ExportacaoStatus::class, 'status_id'); } public function unidades() { return $this->belongsToMany(Unidade::class, 'bpa_exportacao_unidade') ->using(ExportacaoUnidade::class) ->withTimestamps(); } public function financiamentos() { return $this->belongsToMany(Financiamento::class, $this->getConnection()->getDatabaseName() . '.bpa_exportacao_financiamento') ->using(ExportacaoFinanciamento::class) ->withTimestamps(); } public function getIsAllowedToDeleteAttribute() { return true; } }