src/Traits/HasContacts.php
public function addContact(array $attributes)
    {
        $attributes = $this->loadContactAttributes($attributes);

        return $this->contacts()->updateOrCreate($attributes);
    }
public function addContact(array $attributes)
    {
        $attributes = $this->loadContactAttributes($attributes);

        return $this->contacts()->updateOrCreate($attributes);
    }
public function addContact ( array $ attributes ) { $ attributes = $ this -> loadContactAttributes ( $ attributes ) ; return $ this -> contacts ( ) -> updateOrCreate ( $ attributes ) ; }
Add a contact to this model.

@param  array  $attributes
@return mixed

@throws \Exception
Add a contact to this model .