public function syncMessengers(Contact $contact, array $messengers = null) { if (isset($messengers)) { $contact->messengers()->delete(); foreach ($messengers as $messenger) { if (!empty($messenger['value'])) { $messenger = $this->messengers->newInstance($messenger); $contact->messengers()->save($messenger); } } } }