hasMany(Endereco::class); } public function getIsAllowedToDeleteAttribute() { return $this->hasNoOne([ 'enderecos' ]); } }