public function addContactToCampaign()
    {
        if ($this->contact->getId()) {
            // Add the contact directly to the campaign without duplicate checking.
            // Passing manuallyAdded as true is important, prevents cron from immediately removing the contacts.
            $this->addContactsToCampaign($this->campaign, [$this->contact], true);
        }

        return $this;
    }
public function addContactToCampaign()
    {
        if ($this->contact->getId()) {
            // Add the contact directly to the campaign without duplicate checking.
            // Passing manuallyAdded as true is important, prevents cron from immediately removing the contacts.
            $this->addContactsToCampaign($this->campaign, [$this->contact], true);
        }

        return $this;
    }
public function addContactToCampaign ( ) { if ( $ this -> contact -> getId ( ) ) { // Add the contact directly to the campaign without duplicate checking. // Passing manuallyAdded as true is important, prevents cron from immediately removing the contacts. $ this -> addContactsToCampaign ( $ this -> campaign , [ $ this -> contact ] , true ) ; } return $ this ; }
Feed a contact to a campaign. If real-time is enabled, skip event dispatching to prevent recursion.

@return $this

@throws \Exception
Feed a contact to a campaign . If real - time is enabled skip event dispatching to prevent recursion .