| @@ 76-83 (lines=8) @@ | ||
| 73 | return $contact; |
|
| 74 | } |
|
| 75 | ||
| 76 | public function reuseExisting($email) |
|
| 77 | { |
|
| 78 | if (trim($email) == '') { |
|
| 79 | return false; |
|
| 80 | } |
|
| 81 | ||
| 82 | return $this->business->contacts()->where('email', '=', $email)->first(); |
|
| 83 | } |
|
| 84 | ||
| 85 | public function getExisting($email) |
|
| 86 | { |
|
| @@ 94-101 (lines=8) @@ | ||
| 91 | return Contact::whereNotNull('user_id')->where('email', '=', $email)->first(); |
|
| 92 | } |
|
| 93 | ||
| 94 | public function getSubscribed($email) |
|
| 95 | { |
|
| 96 | if (trim($email) == '') { |
|
| 97 | return false; |
|
| 98 | } |
|
| 99 | ||
| 100 | return $this->business->contacts()->where('email', '=', $email)->first(); |
|
| 101 | } |
|
| 102 | ||
| 103 | public function getRegisteredUserId($userId) |
|
| 104 | { |
|